{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material/issues/7635","repository_url":"https://api.github.com/repos/angular/material","labels_url":"https://api.github.com/repos/angular/material/issues/7635/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/7635/comments","events_url":"https://api.github.com/repos/angular/material/issues/7635/events","html_url":"https://github.com/angular/material/issues/7635","id":141911694,"number":7635,"title":"strange behavior using ng-messages inside md-auto-complete","user":{"login":"kfirufk","id":3110843,"avatar_url":"https://avatars.githubusercontent.com/u/3110843?v=3","gravatar_id":"","url":"https://api.github.com/users/kfirufk","html_url":"https://github.com/kfirufk","followers_url":"https://api.github.com/users/kfirufk/followers","following_url":"https://api.github.com/users/kfirufk/following{/other_user}","gists_url":"https://api.github.com/users/kfirufk/gists{/gist_id}","starred_url":"https://api.github.com/users/kfirufk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfirufk/subscriptions","organizations_url":"https://api.github.com/users/kfirufk/orgs","repos_url":"https://api.github.com/users/kfirufk/repos","events_url":"https://api.github.com/users/kfirufk/events{/privacy}","received_events_url":"https://api.github.com/users/kfirufk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/material/labels/needs:%20investigation","name":"needs: investigation","color":"444444"},{"url":"https://api.github.com/repos/angular/material/labels/P4%20-%20Reported%20By%20or%20General%20PRs/Errors%20or%20Edge%20Cases","name":"P4 - Reported By or General PRs/Errors or Edge Cases","color":"bfdadc"}],"state":"open","locked":false,"assignee":{"login":"topherfangio","id":54370,"avatar_url":"https://avatars.githubusercontent.com/u/54370?v=3","gravatar_id":"","url":"https://api.github.com/users/topherfangio","html_url":"https://github.com/topherfangio","followers_url":"https://api.github.com/users/topherfangio/followers","following_url":"https://api.github.com/users/topherfangio/following{/other_user}","gists_url":"https://api.github.com/users/topherfangio/gists{/gist_id}","starred_url":"https://api.github.com/users/topherfangio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topherfangio/subscriptions","organizations_url":"https://api.github.com/users/topherfangio/orgs","repos_url":"https://api.github.com/users/topherfangio/repos","events_url":"https://api.github.com/users/topherfangio/events{/privacy}","received_events_url":"https://api.github.com/users/topherfangio/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/angular/material/milestones/11","html_url":"https://github.com/angular/material/milestones/-%20Backlog","labels_url":"https://api.github.com/repos/angular/material/milestones/11/labels","id":865967,"number":11,"title":"- Backlog","description":"Grouping for issues that have been reviewed and require further information before assignment to milestone is possible.","creator":{"login":"ThomasBurleson","id":210413,"avatar_url":"https://avatars.githubusercontent.com/u/210413?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasBurleson","html_url":"https://github.com/ThomasBurleson","followers_url":"https://api.github.com/users/ThomasBurleson/followers","following_url":"https://api.github.com/users/ThomasBurleson/following{/other_user}","gists_url":"https://api.github.com/users/ThomasBurleson/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasBurleson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasBurleson/subscriptions","organizations_url":"https://api.github.com/users/ThomasBurleson/orgs","repos_url":"https://api.github.com/users/ThomasBurleson/repos","events_url":"https://api.github.com/users/ThomasBurleson/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasBurleson/received_events","type":"User","site_admin":false},"open_issues":360,"closed_issues":531,"state":"open","created_at":"2014-11-14T00:54:02Z","updated_at":"2016-04-26T00:47:24Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-03-18T16:14:58Z","updated_at":"2016-04-26T10:32:35Z","closed_at":null,"body":"Hello.\r\n\r\nI'm trying to create an md-auto-complete with ng-messages that will show a required message if the user did not enter a text in the md-auto-complete input field.\r\n\r\nI created a jsfiddle at https://jsfiddle.net/kfirufk/zoyxq9g6/3/\r\n\r\nfirst problem, the required error message is shown at all times, even when i enter text in the md-auto-complete text field. in the jsfiddle i also print autocompleteForm.autocomplete.$error that shows that when i type text in the text input, the required error is removed from the returned object.\r\n\r\nsecond problem, if i don't have md-floating-label added to the md-auto-complete, then the ng-messages div is not shown at all.\r\n\r\nin general just copied the  example on angular material website and modify it a bit. \r\n\r\nany ideas ? \r\n\r\nusing angularjs 1.5.1 with angular material 1.1.0-rc1"},"comment":{"url":"https://api.github.com/repos/angular/material/issues/comments/214696950","html_url":"https://github.com/angular/material/issues/7635#issuecomment-214696950","issue_url":"https://api.github.com/repos/angular/material/issues/7635","id":214696950,"user":{"login":"cairomax","id":4115717,"avatar_url":"https://avatars.githubusercontent.com/u/4115717?v=3","gravatar_id":"","url":"https://api.github.com/users/cairomax","html_url":"https://github.com/cairomax","followers_url":"https://api.github.com/users/cairomax/followers","following_url":"https://api.github.com/users/cairomax/following{/other_user}","gists_url":"https://api.github.com/users/cairomax/gists{/gist_id}","starred_url":"https://api.github.com/users/cairomax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cairomax/subscriptions","organizations_url":"https://api.github.com/users/cairomax/orgs","repos_url":"https://api.github.com/users/cairomax/repos","events_url":"https://api.github.com/users/cairomax/events{/privacy}","received_events_url":"https://api.github.com/users/cairomax/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T10:32:35Z","updated_at":"2016-04-26T10:32:35Z","body":"I also encountered similar problems. Should be a duplicate of https://github.com/angular/material/issues/7477\r\n\r\nYou can also add the `md-input-message-animation` class to the `ng-message` elements to fix the presentation. See\r\nhttps://jsfiddle.net/t7e4yfez/2/\r\nand\r\nhttp://codepen.io/cairomassimo/pen/wGEKPZ"}}