Escolar Documentos
Profissional Documentos
Cultura Documentos
1 of 6 5/16/19, 12:16 PM
Configure import
Routing In{An
NgModule } Project
Angular CLI from |'@angular/core';
... https://shermandigital.com/blog/configure-routin...
@NgModule({
imports: [
RouterModule.forRoot(routes)
],
exports: [
RouterModule
],
declarations: []
})
export class AppRoutingModule { }
2 of 6 5/16/19, 12:16 PM
... Routing In An Angular CLI Project | ...
Configure https://shermandigital.com/blog/configure-routin...
@NgModule({
...
imports: [
BrowserModule,
FormsModule,
HttpModule,
AppRoutingModule,
],
...
})
7. Save all files. The dashboard view is now displayed within the
app component.
...
const routes: Routes = [
{
path: '/my-new-route',
component: MyNewRouteComponent,
},
{
path: '',
component: DashboardComponent,
},
];
...
Angular (//shermandigital.com/tags/angular)
3 of 6 5/16/19, 12:16 PM
Configure Routing In An Angular CLI Project | ... https://shermandigital.com/blog/configure-routin...
4 of 6 5/16/19, 12:16 PM
Configure Routing In An Angular CLI Project | ... https://shermandigital.com/blog/configure-routin...
Comments for this thread are now closed ×
Comments Community
1 Login
Screenshot Links:
https://ibb.co/hjW4Ek
https://ibb.co/n9RRS5
△ ▽ • Share ›
Screenshot Links:
https://ibb.co/h3ty75
1△ ▽ • Share ›
Thanks Chris!
△ ▽ • Share ›
5 of 6 AND YOU ARE DONE! thanks to the CLI team 5/16/19, 12:16 PM
△ ▽ • Share ›
Configure Routing In An Angular CLI Project | ... https://shermandigital.com/blog/configure-routin...
Since writing
(/www.linkedin.com About
my first lines /in/chrisjsherm/)
(/about/) Learn more about me
of code in
Connect with me on Portfolio
elementary
LinkedIn (/portfolio/) Browse some of my
school I've
(//www.linkedin.com work
developed expertise in
/in/chrisjsherm/) to
software engineering, team Blog
discover common
leadership, and project (/blog/) Technology tidbits
connections.
management. Today I’m
Contact
passionate about engineering (/github.com (/contact/) Send a message to get in
fast, scalable applications
/chrisjshermtabrepositories) touch
powered by the cloud. My skills View Github (//github.com
and experience enable me to /chrisjsherm?tab=repositories/)
deliver a holistic approach that to browse the source code
generates results. of my open source
projects.
(/stackoverflow.com/users
/1579559/chrisjsherm/)
Visit StackOverflow
(//stackoverflow.com
/users/1579559
/chrisjsherm/) to see my
contributions to the
programming community.
© 2018 Sherman Digital, LLC. All Rights Reserved. Developed by Sherman Digital, LLC (//shermandigital.com/)
Developed by Sherman Digital, LLC (//shermandigital.com/)
6 of 6 5/16/19, 12:16 PM