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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly