File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
6
6
7
- ##Getting started
7
+ ##Getting started with the example
8
8
9
9
* Install dependencies and start compiling:
10
10
`
@@ -22,6 +22,8 @@ or use a server of your choice and open index.html in any browser
22
22
23
23
` grunt build `
24
24
25
+
26
+ ##How to use
25
27
* Copy RuntimeMetadataResolverWrapper and TemplateCacheResolver classes within your project
26
28
* Add the code to the app bootstrapper:
27
29
@@ -36,5 +38,13 @@ bootstrap(<any>RouterComponent, [
36
38
FORM_DIRECTIVES
37
39
] );
38
40
`
41
+ * install grunt-inline-angular-templates
42
+
43
+ `
44
+ npm install --save-dev grunt-inline-angular-templates
45
+ `
46
+
47
+ * Add a task to your Gruntfile.js to generate the templates inside index.html
48
+ * Run the task and the templates should be cached inside index.html (e.g. in build/index.html)
39
49
40
50
The webpack task won't be necessary if system.js is used (index.html has to be modified to work with system.js).
You can’t perform that action at this time.
0 commit comments