Skip to content

Commit f91158c

Browse files
author
Gregor Woiwode
committed
Documents ng2-module
1 parent 20f1d17 commit f91158c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ Type part of a snippet, press `enter`, and the snippet unfolds.
1111
|snippet|explanation|
1212
|-------|-----------|
1313
|[ng2-bootstrap](#ng2-bootstrap) |bootstrap a module|
14+
|[ng2-module](#ng2-module) |create a module|
1415
|[ng2-component](#ng2-component) |create a component|
1516
|[ng2-input](#ng2-input) |create an input property|
1617
|[ng2-output](#ng2-output) |create an output event|
1718
|[ng2-directive](#ng2-directive) |create a directive|
1819
|[ng2-pipe](#ng2-pipe) |create a pipe|
1920
|[ng2-routes](#ng2-routes) |setup routes|
20-
|[ng2-route-path](#ng2-route-path) |confiigure single|
21+
|[ng2-route-path](#ng2-route-path) |configure single|
2122
|[ng2-service](#ng2-service) |create a service|
2223
|[ng2-subscribe](#ng2-subscribe) |subscribe to an observable|
2324
|[ng2-rx-map](#ng2-rx-map) |import map-operator |
@@ -61,6 +62,22 @@ import { <module-name> } from './<path-to-module>.module';
6162
platformBrowserDynamic().bootstrapModule(<module-name>);
6263
```
6364

65+
### ng2-module
66+
67+
`ng2-module` provides a skeleton for an Angular 2 module.
68+
69+
```ts
70+
import { NgModule } from '@angular/core';
71+
72+
@NgModule({
73+
imports: [<Modules>],
74+
declarations: [<Components>, <Directives>],
75+
providers: [<Services>]
76+
})
77+
export class <ModuleName> { }
78+
79+
```
80+
6481
### ng2-component
6582

6683
`ng2-component` provides a skeleton for an Angular 2 Component.

0 commit comments

Comments
 (0)