{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic-cli/issues/1442","repository_url":"https://api.github.com/repos/driftyco/ionic-cli","labels_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/1442/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/1442/comments","events_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/1442/events","html_url":"https://github.com/driftyco/ionic-cli/issues/1442","id":180357989,"number":1442,"title":"RC-0: Name pattern of generated pages","user":{"login":"jgw96","id":8823093,"avatar_url":"https://avatars.githubusercontent.com/u/8823093?v=3","gravatar_id":"","url":"https://api.github.com/users/jgw96","html_url":"https://github.com/jgw96","followers_url":"https://api.github.com/users/jgw96/followers","following_url":"https://api.github.com/users/jgw96/following{/other_user}","gists_url":"https://api.github.com/users/jgw96/gists{/gist_id}","starred_url":"https://api.github.com/users/jgw96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgw96/subscriptions","organizations_url":"https://api.github.com/users/jgw96/orgs","repos_url":"https://api.github.com/users/jgw96/repos","events_url":"https://api.github.com/users/jgw96/events{/privacy}","received_events_url":"https://api.github.com/users/jgw96/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-30T17:22:54Z","updated_at":"2016-09-30T19:59:39Z","closed_at":null,"body":"_From @ecureuill on September 29, 2016 20:7_\n\n#### Short description of the problem:\r\nIonic CLI **generate page** command doesn't add 'Page' sufix to the class name \r\n\r\n#### What behavior are you expecting?\r\nWhen generating new page through ionic cli,  the class name of the .ts file generated should contains **Page** at the end of the name  \r\n\r\n```\r\n@Component({\r\n  templateUrl: 'build/pages/home/home.html',\r\n})\r\nexport class HomePage {}\r\n\r\n```\r\n**Steps to reproduce:**\r\n1. ionic start myApp --v2\r\n2. ionic build\r\n3. ionic g page myPage\r\n\r\n```\r\n@Component({\r\n  templateUrl: 'build/pages/home/home.html',\r\n})\r\nexport class Home {}\r\n\r\n```\r\n**Other information:** (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)\r\n \r\nLike in ionic beta, set \"Page\" to the ClassName variable\r\n\r\n```\r\nfunction PageGenerator(options) {\r\n  Generator.call(this, options);\r\n  this.directory = 'pages';\r\n  this.jsClassName += 'Page';\r\n}\r\n\r\n```\r\n\r\n**Which Ionic Version?** 1.x or 2.x\r\n2 RC0\r\n\r\n\r\n**Run `ionic info` from terminal/cmd prompt:** (paste output below)\r\nCordova CLI: 6.3.1\r\nGulp version:  CLI version 3.9.1\r\nGulp local:  \r\nIonic Framework Version: 2.0.0-rc.0\r\nIonic CLI Version: 2.1.0\r\nIonic App Lib Version: 2.1.0-beta.1\r\nOS: Distributor ID:\tDebian Description:\tDebian GNU/Linux 8.6 (jessie) \r\nNode Version: v4.5.0\r\n\r\n\r\n\r\n\n\n_Copied from original issue: driftyco/ionic#8320_"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic-cli/issues/comments/250838241","html_url":"https://github.com/driftyco/ionic-cli/issues/1442#issuecomment-250838241","issue_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/1442","id":250838241,"user":{"login":"ecureuill","id":993369,"avatar_url":"https://avatars.githubusercontent.com/u/993369?v=3","gravatar_id":"","url":"https://api.github.com/users/ecureuill","html_url":"https://github.com/ecureuill","followers_url":"https://api.github.com/users/ecureuill/followers","following_url":"https://api.github.com/users/ecureuill/following{/other_user}","gists_url":"https://api.github.com/users/ecureuill/gists{/gist_id}","starred_url":"https://api.github.com/users/ecureuill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecureuill/subscriptions","organizations_url":"https://api.github.com/users/ecureuill/orgs","repos_url":"https://api.github.com/users/ecureuill/repos","events_url":"https://api.github.com/users/ecureuill/events{/privacy}","received_events_url":"https://api.github.com/users/ecureuill/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T19:59:39Z","updated_at":"2016-09-30T19:59:39Z","body":"Your system information:\r\n\r\nCordova CLI: 6.3.1\r\nGulp version:  CLI version 3.9.1\r\nGulp local:  \r\nIonic Framework Version: 2.0.0-rc.0\r\nIonic CLI Version: 2.1.0\r\nIonic App Lib Version: 2.1.0-beta.1\r\nOS: Distributor ID:\tDebian Description:\tDebian GNU/Linux 8.6 (jessie) \r\nNode Version: v4.5.0\r\n"}}
{"actor":{"display_login":"ecureuill"}}