{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/5741","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/5741/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/5741/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/5741/events","html_url":"https://github.com/driftyco/ionic/issues/5741","id":138845080,"number":5741,"title":"@Input decorator breaks Ionic 2 App","user":{"login":"alyn000r","id":8127706,"avatar_url":"https://avatars.githubusercontent.com/u/8127706?v=3","gravatar_id":"","url":"https://api.github.com/users/alyn000r","html_url":"https://github.com/alyn000r","followers_url":"https://api.github.com/users/alyn000r/followers","following_url":"https://api.github.com/users/alyn000r/following{/other_user}","gists_url":"https://api.github.com/users/alyn000r/gists{/gist_id}","starred_url":"https://api.github.com/users/alyn000r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alyn000r/subscriptions","organizations_url":"https://api.github.com/users/alyn000r/orgs","repos_url":"https://api.github.com/users/alyn000r/repos","events_url":"https://api.github.com/users/alyn000r/events{/privacy}","received_events_url":"https://api.github.com/users/alyn000r/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/driftyco/ionic/labels/platform:ios","name":"platform:ios","color":"0052cc"},{"url":"https://api.github.com/repos/driftyco/ionic/labels/v2","name":"v2","color":"313744"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-06T22:23:34Z","updated_at":"2016-03-06T23:54:34Z","closed_at":null,"body":"#### Short description of the problem:\r\nWhen I add @Input decorator the app breaks saying:\r\nModule build failed: SyntaxError: ~/app/pages/user/user.js: Unexpected token (9:13)\r\n\r\n#### What behavior are you expecting?\r\nIt should not break, I saw countless tutorials using this decorator. \r\n\r\nI have imported the Input from angular2/core\r\n\r\n\r\n**Steps to reproduce:**\r\n1. \r\n2. \r\n3. \r\n\r\n```\r\ninsert any relevant code between the above and below backticks\r\n\r\nimport {Component, Input} from 'angular2/core';\r\n@Component({\r\n  selector: 'user',\r\n  templateUrl: 'build/pages/user/user.html',\r\n  inputs: ['name']\r\n})\r\n\r\nexport class User {\r\n  @Input name:string\r\n  constructor(){\r\n \r\n    }\r\n\r\n  setUser(user) {\r\n      this.userName = user.name;\r\n      this.pictureURL = user.picture.data.url;\r\n  }\r\n  \r\n}\r\n```\r\n\r\n**Ionic Version**: 2\r\n\r\n**Browser & Operating System**: Chrome\r\n\r\n\r\n**Run `ionic info` from terminal/cmd prompt:**\r\n\r\n```\r\nIonic Version Info:\r\nCordova CLI: 5.4.0\r\nIonic Version: 2.0.0-beta.1\r\nIonic CLI Version: 2.0.0-beta.17\r\nIonic App Lib Version: 2.0.0-beta.8\r\nios-deploy version: Not installed\r\nios-sim version: 5.0.6 \r\nOS: Mac OS X El Capitan\r\nNode Version: v5.3.0\r\nXcode version: Xcode 7.2.1 Build version 7C1002\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/193018134","html_url":"https://github.com/driftyco/ionic/issues/5741#issuecomment-193018134","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/5741","id":193018134,"user":{"login":"alyn000r","id":8127706,"avatar_url":"https://avatars.githubusercontent.com/u/8127706?v=3","gravatar_id":"","url":"https://api.github.com/users/alyn000r","html_url":"https://github.com/alyn000r","followers_url":"https://api.github.com/users/alyn000r/followers","following_url":"https://api.github.com/users/alyn000r/following{/other_user}","gists_url":"https://api.github.com/users/alyn000r/gists{/gist_id}","starred_url":"https://api.github.com/users/alyn000r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alyn000r/subscriptions","organizations_url":"https://api.github.com/users/alyn000r/orgs","repos_url":"https://api.github.com/users/alyn000r/repos","events_url":"https://api.github.com/users/alyn000r/events{/privacy}","received_events_url":"https://api.github.com/users/alyn000r/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T23:54:34Z","updated_at":"2016-03-06T23:54:34Z","body":"I tried it with Input() also and it still does not work.\r\n\r\n@Input() name: string;"}}