Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Angular
(edit)
Revision as of 15:03, 9 May 2022
17 bytes added
,
15:03, 9 May 2022
m
→ng Commands
Line 21:
Line 21:
cd my-app
cd my-app
ng serve
ng serve
+
ng serve --live-reload
ng build
ng build
ng test
ng test
Line 151:
Line 152:
</syntaxhighlight>
</syntaxhighlight>
−
== Routing ==
+
==Routing==
−
=== app-routing.module.ts ===
+
===app-routing.module.ts===
<syntaxhighlight lang="typescript">
<syntaxhighlight lang="typescript">
import { RouterModule, Routes } from '@angular/router';
import { RouterModule, Routes } from '@angular/router';
Line 174:
Line 175:
</syntaxhighlight>
</syntaxhighlight>
−
== Error component ==
+
==Error component==
ng g c error
ng g c error
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version