Skip to content

propose: add page.module.ts#63

Merged
imhoffd merged 2 commits intoionic-team:masterfrom
rdlabo:pages_module
Mar 26, 2018
Merged

propose: add page.module.ts#63
imhoffd merged 2 commits intoionic-team:masterfrom
rdlabo:pages_module

Conversation

@rdlabo
Copy link
Copy Markdown
Contributor

@rdlabo rdlabo commented Mar 26, 2018

Angular CLI can't judge pages and check @angular/router.
So I think Ionic CLI's page concentrate page.module.ts. and match selector name. ex) app-page-home

fix ionic-team/ionic-cli#3019 (comment)

@@ -1 +1,3 @@
// homepage styles
app-page-home {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This selector is not required. Angular CSS pulled in from styles or styleUrls are already scoped: https://angular.io/guide/component-styles#style-scope

@imhoffd
Copy link
Copy Markdown
Contributor

imhoffd commented Mar 26, 2018

@rdlabo This is a good idea!

@rdlabo
Copy link
Copy Markdown
Contributor Author

rdlabo commented Mar 26, 2018

@dwieeb thanks for review. and I see. not need selector in v4!
update it!

@imhoffd imhoffd merged commit c8ab4ae into ionic-team:master Mar 26, 2018
@imhoffd
Copy link
Copy Markdown
Contributor

imhoffd commented Mar 26, 2018

@rdlabo Awesome!

Also, in the future can you make sure to use 2 spaces in TypeScript files?

@rdlabo
Copy link
Copy Markdown
Contributor Author

rdlabo commented Mar 27, 2018

@dwieeb Oh! I will set my IDE use 2 spaces in TypeScript files!

@rdlabo rdlabo deleted the pages_module branch March 27, 2018 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Help Wanted: Test CLI tooling for Ionic Angular 4

2 participants