{"action":"closed","issue":{"url":"https://api.github.com/repos/assisrafael/angular-input-masks/issues/168","repository_url":"https://api.github.com/repos/assisrafael/angular-input-masks","labels_url":"https://api.github.com/repos/assisrafael/angular-input-masks/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/assisrafael/angular-input-masks/issues/168/comments","events_url":"https://api.github.com/repos/assisrafael/angular-input-masks/issues/168/events","html_url":"https://github.com/assisrafael/angular-input-masks/issues/168","id":143547088,"number":168,"title":"Apply mask when page loads (the model has an initial value)","user":{"login":"freeboxd","id":2717586,"avatar_url":"https://avatars.githubusercontent.com/u/2717586?v=3","gravatar_id":"","url":"https://api.github.com/users/freeboxd","html_url":"https://github.com/freeboxd","followers_url":"https://api.github.com/users/freeboxd/followers","following_url":"https://api.github.com/users/freeboxd/following{/other_user}","gists_url":"https://api.github.com/users/freeboxd/gists{/gist_id}","starred_url":"https://api.github.com/users/freeboxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeboxd/subscriptions","organizations_url":"https://api.github.com/users/freeboxd/orgs","repos_url":"https://api.github.com/users/freeboxd/repos","events_url":"https://api.github.com/users/freeboxd/events{/privacy}","received_events_url":"https://api.github.com/users/freeboxd/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":3,"created_at":"2016-03-25T17:23:10Z","updated_at":"2016-04-13T06:18:23Z","closed_at":"2016-04-13T06:18:23Z","body":"Assuming that I have\r\n`$scope.date = '01032015';`\r\nand\r\n`<input type=\"text\" ng-model=\"date\" ui-date-mask>`\r\nWhen the page loads, the input has no value displayed.\r\n\r\nIs there a way I can load the page and have the model to appear with the mask in the view?\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/32258083-apply-mask-when-page-loads-the-model-has-an-initial-value?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>"}}