routing Flashcards
1
Q
how do you generate a component?
A
ng generate component componentName
2
Q
How do you create an anchor tag?
A
<a>text</a>
3
Q
Why do we use angular routing?
A
To facilitate navigation by telling the browser to use a specific URL to change the view rather than going to the server to retrieve a new page.
4
Q
How do you generate a service?
A
ng generate service serviceName