You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+50Lines changed: 50 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,3 +57,53 @@ PA: Set up angular2-logger, which is a package inspired by log4j.
57
57
58
58
A: By specifying the moduleId to be module.id in the Component decorator. (Note: while this is still needed when using SystemJS, it is not necessary anymore when using Webpack module bundler for Angular 2 projects.)
59
59
60
+
61
+
## NgModules Questions:
62
+
63
+
**What is the purpose of NgModule?**
64
+
65
+
A: to give Angular information on a particular module’s contents, through decorator properties like: declarations, imports, exports, providers, etc.
66
+
67
+
**How do you decide to create a new NgModule?**
68
+
69
+
A: Typically for a nontrivial feature in an application, that will involve a collection of related components and services.
70
+
71
+
**What are the attributes that you can define in an NgModule annotation?**
0 commit comments