Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng-ui-module schematic should 'register' itself in AppModule #2

Open
beeman opened this issue May 4, 2018 · 0 comments
Open

ng-ui-module schematic should 'register' itself in AppModule #2

beeman opened this issue May 4, 2018 · 0 comments

Comments

@beeman
Copy link
Owner

beeman commented May 4, 2018

Schematic ng-ui-module should update existing app:

  • Import UiModule in AppModule

import { UiModule } from './ui'

  • Add LayoutComponent to routes in AppModule.
import { LayoutComponent } from './ui'

{ path: '', component: LayoutComponent, children: [] }
  • Change ng-content to router-outlet in LayoutComponent

  • Import styles to src/styles.css:

@import "~bootstrap/dist/css/bootstrap.css";
@import "~font-awesome/css/font-awesome.css";
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

No branches or pull requests

1 participant