Skip to content

Commit 3f2be3d

Browse files
vladimir ivanovvladimir ivanov
authored andcommitted
modified README
1 parent 747f5b1 commit 3f2be3d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66

7-
##Getting started
7+
##Getting started with the example
88

99
* Install dependencies and start compiling:
1010
`
@@ -22,6 +22,8 @@ or use a server of your choice and open index.html in any browser
2222

2323
`grunt build`
2424

25+
26+
##How to use
2527
* Copy RuntimeMetadataResolverWrapper and TemplateCacheResolver classes within your project
2628
* Add the code to the app bootstrapper:
2729

@@ -36,5 +38,13 @@ bootstrap(<any>RouterComponent, [
3638
FORM_DIRECTIVES
3739
]);
3840
`
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)
3949

4050
The webpack task won't be necessary if system.js is used (index.html has to be modified to work with system.js).

0 commit comments

Comments
 (0)