Build Your First Web App: Learn to Build Web Applications from Scratch by Deborah Levinson & Todd Belton
Author:Deborah Levinson & Todd Belton
Language: eng
Format: epub, azw3
The root component will also use the router, but in a different way. Open app.component.ts and change the template so it reads like this:
Don’t change anything in the rest of the file, just the template.
We’ve added a little temporary formatting to get the header to display on a background of our banner color. That’s not obligatory.21 The important part is the <router-outlet> tag pair. In place of these, the component currently selected by the router will be displayed. When the app first starts, the path will be empty (just localhost:3000/), so the MealEntryComponent template will be shown, as we have told it to do in the routes table. Later, if we navigate to a different component (using the navigation functions we’ve created), the contents of this tag pair will change accordingly.
In other words, we’ve just set up the root component as a “frame” that will display all our other components, depending on navigation. The only HTML in the root component that doesn’t change with navigation is the title banner.
We don’t need to import or declare use of Router in our root component because we’re not using Router data or functions anywhere within the component’s code. We get <router -outlet> “for free”—assuming we remember to add the appropriate declarations to the root module, which we get to shortly.
Download
Build Your First Web App: Learn to Build Web Applications from Scratch by Deborah Levinson & Todd Belton.azw3
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7780)
Grails in Action by Glen Smith Peter Ledbrook(7696)
Configuring Windows Server Hybrid Advanced Services Exam Ref AZ-801 by Chris Gill(6561)
Azure Containers Explained by Wesley Haakman & Richard Hooper(6548)
Running Windows Containers on AWS by Marcio Morales(6078)
Kotlin in Action by Dmitry Jemerov(5065)
Microsoft 365 Identity and Services Exam Guide MS-100 by Aaron Guilmette(4914)
Combating Crime on the Dark Web by Nearchos Nearchou(4495)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4414)
Microsoft Cybersecurity Architect Exam Ref SC-100 by Dwayne Natwick(4332)
The Ruby Workshop by Akshat Paul Peter Philips Dániel Szabó and Cheyne Wallace(4168)
The Age of Surveillance Capitalism by Shoshana Zuboff(3950)
Python for Security and Networking - Third Edition by José Manuel Ortega(3737)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3508)
The Ultimate Docker Container Book by Schenker Gabriel N.;(3405)
Mastering Python for Networking and Security by José Manuel Ortega(3344)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3330)
Blockchain Basics by Daniel Drescher(3294)
Learn Wireshark by Lisa Bock(3255)
