Basics Flashcards
1
Q
How do you create a new component?
After creating the component what is the next key step?
A
ng g component componentName
Next step:
Go to app module and import the component at the top of the file and then in @ngModule import it into declarations
2
Q
How do you create a new service, how can you include it into app module with a command?
A
ng g service serviceName –app=module