Skip to main content

Posts

Showing posts with the label Outlet

What Is ActivatedRoute in Routes?

What Is ActivatedRoute? ActivatedRoute is an interface and it contains the information about a route associated with a component loaded into an outlet and it can also be used to traverse the router state tree. And it contains the list of Properties – 1.        Snapshot – It is the current snapshot of this route. 2.        URL – It is an observable of the URL segments and it matched by this route 3.        Params – It is an observable of the matrix parameters scoped to this route 4.        QueryParams - it is an observable of the query parameters shared by all the routes 5.        Fragment- It is an observable of the URL fragment shared by all the routes 6.        Data- It is an observable of the static and resolved data of this route. 7.        Outlet. It's a...

Angular 4 Routing and Navigation [Router Imports, Outlet, Link, State and Events]

What Is Angular Router? What’s New Angular 4 Router? The Angular Router enables navigation from one view to the next as users perform application tasks. Angular 4 comes with some useful changes in the router. Let’s take a look in the detail changes!   Stayed Informed – Angular 4 Q/A The Components of Routing and Navigation - 1.      Router Imports 2.      Router Configuration 3.      Router Outlet 4.      Router Link 5.      Router State 6.      Router Events Angular Routing Overview - 1.      Enter the URL in your address bar for your browser navigations. 2.      Click on your navigations links on the page and the browser navigates to a new page which you have entered in the navigations URL. 3.      Click the browsers back and forward buttons. The browser naviga...