Introduction to Routing & Navigation in angular 4 example - LearnHowToCode SarkariResult.com Interview Questions and Answers LearnHowToCodeOnline
Introduction to routing in angular 4 example

Introduction to Routing & Navigation in angular 4 example

Introduction to Routing & Navigation  in angular 4 example

There are new requirements for the Tour of Heroes app:
  • Add a Dashboard view.
  • Add the ability to navigate between the Heroes and Dashboardviews.
  • When users click a hero name in either view, navigate to a detail view of the selected hero.
  • When users click a deep link in an email, open the detail view for a particular hero.
When you’re done, users will be able to navigate the app like this:
View navigations

Add the AppRoutingModule

An Angular best practice is to load and configure the router in a separate, top-level module that is dedicated to routing and imported by the root AppModule.
By convention, the module class name is AppRoutingModule and it belongs in the app-routing.module.ts in the src/app folder.
Use the CLI to generate it.
ng generate module app-routing --flat --module=app


About Mariano

I'm Ethan Mariano a software engineer by profession and reader/writter by passion.I have good understanding and knowledge of AngularJS, Database, javascript, web development, digital marketing and exploring other technologies related to Software development.

0 comments:

Featured post

Political Full Forms List

Acronym Full Form MLA Member of Legislative Assembly RSS Really Simple Syndication, Rashtriya Swayamsevak Sangh UNESCO United Nations E...

Powered by Blogger.