{"action":"closed","issue":{"url":"https://api.github.com/repos/assisrafael/angular-input-masks/issues/155","labels_url":"https://api.github.com/repos/assisrafael/angular-input-masks/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/assisrafael/angular-input-masks/issues/155/comments","events_url":"https://api.github.com/repos/assisrafael/angular-input-masks/issues/155/events","html_url":"https://github.com/assisrafael/angular-input-masks/issues/155","id":127235379,"number":155,"title":"Attribute max doesn't work","user":{"login":"pikkolojoe","id":12815514,"avatar_url":"https://avatars.githubusercontent.com/u/12815514?v=3","gravatar_id":"","url":"https://api.github.com/users/pikkolojoe","html_url":"https://github.com/pikkolojoe","followers_url":"https://api.github.com/users/pikkolojoe/followers","following_url":"https://api.github.com/users/pikkolojoe/following{/other_user}","gists_url":"https://api.github.com/users/pikkolojoe/gists{/gist_id}","starred_url":"https://api.github.com/users/pikkolojoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pikkolojoe/subscriptions","organizations_url":"https://api.github.com/users/pikkolojoe/orgs","repos_url":"https://api.github.com/users/pikkolojoe/repos","events_url":"https://api.github.com/users/pikkolojoe/events{/privacy}","received_events_url":"https://api.github.com/users/pikkolojoe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/assisrafael/angular-input-masks/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-18T14:20:25Z","updated_at":"2016-01-18T14:37:19Z","closed_at":"2016-01-18T14:37:19Z","body":"I have two fields and the value max in the second field it's the value of the first field:\r\n ```   \r\n<md-input-container md-no-float >\r\n       <span>This is first field</span>\r\n       <input name=\"field1\" ng-model=\"field1\"  required type=\"text\" ui-money-mask=\"0\" >  </input>\r\n      </md-input-container>\r\n    <md-input-container md-no-float >\r\n        <span>This is second field</span>\r\n        <input name=\"field2\" ng-model=\"field2\" required type=\"text\" ui-money-mask=\"0\" max=\"{{field1}}\">      </input>\r\n    <div ng-messages=\"myForm.field2.$error\">\r\n      <div ng-message=\"max\">Field2 cannot be greater than field1</div>\r\n    </div>\r\n  </md-input-container>\r\n```\r\nBut max doesn't work.\r\nIt work only if I set max static (ex: max=\"100\").\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29978425-attribute-max-doesn-t-work?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}