{"action":"created","issue":{"url":"https://api.github.com/repos/formly-js/angular-formly/issues/634","repository_url":"https://api.github.com/repos/formly-js/angular-formly","labels_url":"https://api.github.com/repos/formly-js/angular-formly/issues/634/labels{/name}","comments_url":"https://api.github.com/repos/formly-js/angular-formly/issues/634/comments","events_url":"https://api.github.com/repos/formly-js/angular-formly/issues/634/events","html_url":"https://github.com/formly-js/angular-formly/issues/634","id":133456618,"number":634,"title":"Expression property is not evaluated","user":{"login":"slavafomin","id":1702725,"avatar_url":"https://avatars.githubusercontent.com/u/1702725?v=3","gravatar_id":"","url":"https://api.github.com/users/slavafomin","html_url":"https://github.com/slavafomin","followers_url":"https://api.github.com/users/slavafomin/followers","following_url":"https://api.github.com/users/slavafomin/following{/other_user}","gists_url":"https://api.github.com/users/slavafomin/gists{/gist_id}","starred_url":"https://api.github.com/users/slavafomin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavafomin/subscriptions","organizations_url":"https://api.github.com/users/slavafomin/orgs","repos_url":"https://api.github.com/users/slavafomin/repos","events_url":"https://api.github.com/users/slavafomin/events{/privacy}","received_events_url":"https://api.github.com/users/slavafomin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kwypchlo","id":3755029,"avatar_url":"https://avatars.githubusercontent.com/u/3755029?v=3","gravatar_id":"","url":"https://api.github.com/users/kwypchlo","html_url":"https://github.com/kwypchlo","followers_url":"https://api.github.com/users/kwypchlo/followers","following_url":"https://api.github.com/users/kwypchlo/following{/other_user}","gists_url":"https://api.github.com/users/kwypchlo/gists{/gist_id}","starred_url":"https://api.github.com/users/kwypchlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwypchlo/subscriptions","organizations_url":"https://api.github.com/users/kwypchlo/orgs","repos_url":"https://api.github.com/users/kwypchlo/repos","events_url":"https://api.github.com/users/kwypchlo/events{/privacy}","received_events_url":"https://api.github.com/users/kwypchlo/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-02-13T18:26:35Z","updated_at":"2016-04-16T11:21:26Z","closed_at":null,"body":"Hello!\r\n\r\nI have the following form type:\r\n\r\n```javascript\r\nformlyConfigProvider.setType([\r\n  {\r\n    name: 'button',\r\n    templateUrl: 'templates/form/types/button.html',\r\n    defaultOptions: {\r\n      templateOptions: {\r\n        type: 'button',\r\n        disabled: false\r\n      },\r\n      expressionProperties: {\r\n        'templateOptions.disabled': 'form.$invalid || !form.modified'\r\n      }\r\n    }\r\n  }\r\n]);\r\n```\r\n\r\nHowever, when I use it in my application the template option is not updated when the value of `form.modified` property changes.\r\n\r\nThis property is added to the form controller by the [angular-input-modified](https://github.com/betsol/angular-input-modified) module.\r\n\r\nIf I replace the expression with the function, I can see that it's not called when the `form.modified` property changes.\r\n\r\nDo you know what could cause this and how can I make it work? Thank you!"},"comment":{"url":"https://api.github.com/repos/formly-js/angular-formly/issues/comments/210793044","html_url":"https://github.com/formly-js/angular-formly/issues/634#issuecomment-210793044","issue_url":"https://api.github.com/repos/formly-js/angular-formly/issues/634","id":210793044,"user":{"login":"slavafomin","id":1702725,"avatar_url":"https://avatars.githubusercontent.com/u/1702725?v=3","gravatar_id":"","url":"https://api.github.com/users/slavafomin","html_url":"https://github.com/slavafomin","followers_url":"https://api.github.com/users/slavafomin/followers","following_url":"https://api.github.com/users/slavafomin/following{/other_user}","gists_url":"https://api.github.com/users/slavafomin/gists{/gist_id}","starred_url":"https://api.github.com/users/slavafomin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavafomin/subscriptions","organizations_url":"https://api.github.com/users/slavafomin/orgs","repos_url":"https://api.github.com/users/slavafomin/repos","events_url":"https://api.github.com/users/slavafomin/events{/privacy}","received_events_url":"https://api.github.com/users/slavafomin/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T11:21:25Z","updated_at":"2016-04-16T11:21:25Z","body":"Hello @kwypchlo , thank you for the suggestion. I will try it in the future, if I will stumble upon this issue again."}}