{"action":"created","issue":{"url":"https://api.github.com/repos/HerringtonDarkholme/av-ts/issues/5","repository_url":"https://api.github.com/repos/HerringtonDarkholme/av-ts","labels_url":"https://api.github.com/repos/HerringtonDarkholme/av-ts/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/HerringtonDarkholme/av-ts/issues/5/comments","events_url":"https://api.github.com/repos/HerringtonDarkholme/av-ts/issues/5/events","html_url":"https://github.com/HerringtonDarkholme/av-ts/issues/5","id":186137026,"number":5,"title":"watch scope","user":{"login":"mvujica","id":11364617,"avatar_url":"https://avatars.githubusercontent.com/u/11364617?v=3","gravatar_id":"","url":"https://api.github.com/users/mvujica","html_url":"https://github.com/mvujica","followers_url":"https://api.github.com/users/mvujica/followers","following_url":"https://api.github.com/users/mvujica/following{/other_user}","gists_url":"https://api.github.com/users/mvujica/gists{/gist_id}","starred_url":"https://api.github.com/users/mvujica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvujica/subscriptions","organizations_url":"https://api.github.com/users/mvujica/orgs","repos_url":"https://api.github.com/users/mvujica/repos","events_url":"https://api.github.com/users/mvujica/events{/privacy}","received_events_url":"https://api.github.com/users/mvujica/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-30T13:44:46Z","updated_at":"2016-10-30T13:48:48Z","closed_at":"2016-10-30T13:48:47Z","body":"Probably not an issue but a caveat or I'm doing something wrong.\r\nInside watch function type of (this) is Vue so I have to do something like this or it won't compile:\r\n\r\n ```\r\n// Watched class property @Watch plus declaration and initiation\r\n    @Watch(function (newValue, oldValue) {\r\n        let self = <AddressComponent>this;\r\n        if (newValue == 0)\r\n            self.isNewAddress = true;\r\n        else\r\n            self.isNewAddress = false;\r\n    })\r\n    selectedBillingAddress: string = undefined;\r\n```\r\n\r\nalso data and watched members must be initialized.\r\n"},"comment":{"url":"https://api.github.com/repos/HerringtonDarkholme/av-ts/issues/comments/257152006","html_url":"https://github.com/HerringtonDarkholme/av-ts/issues/5#issuecomment-257152006","issue_url":"https://api.github.com/repos/HerringtonDarkholme/av-ts/issues/5","id":257152006,"user":{"login":"HerringtonDarkholme","id":2883231,"avatar_url":"https://avatars.githubusercontent.com/u/2883231?v=3","gravatar_id":"","url":"https://api.github.com/users/HerringtonDarkholme","html_url":"https://github.com/HerringtonDarkholme","followers_url":"https://api.github.com/users/HerringtonDarkholme/followers","following_url":"https://api.github.com/users/HerringtonDarkholme/following{/other_user}","gists_url":"https://api.github.com/users/HerringtonDarkholme/gists{/gist_id}","starred_url":"https://api.github.com/users/HerringtonDarkholme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HerringtonDarkholme/subscriptions","organizations_url":"https://api.github.com/users/HerringtonDarkholme/orgs","repos_url":"https://api.github.com/users/HerringtonDarkholme/repos","events_url":"https://api.github.com/users/HerringtonDarkholme/events{/privacy}","received_events_url":"https://api.github.com/users/HerringtonDarkholme/received_events","type":"User","site_admin":false},"created_at":"2016-10-30T13:48:47Z","updated_at":"2016-10-30T13:48:47Z","body":"Hi, this is limitation of TypeScript's inference schema. Watch's annotation cannot have the annotated class's information.\r\n\r\nTry this:\r\n\r\n```typescript\r\n@Watch<Address, string>((newVal, oldVal) => {\r\n})\r\n```"}}
{"actor":{"display_login":"HerringtonDarkholme"}}