Skip to content

Commit e3ef897

Browse files
committed
update instructions
1 parent 433bd32 commit e3ef897

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/recipes/append-angularjs-templates-to-page.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Add AngularJS templates to cache and inline it on page
22

3-
This recipe assumes that your templates are in `src/templates`. It does a two steps substitution in order to achieve its goal, because it needs the Javascript and HTML to be minified with existing configurations, and then it inlines the generate template cache code. It also assumes that you have a module called `MY_MODULE_NAME`.
3+
This recipe assumes that your templates are in `src/templates`. It does a two-step substitution in order to achieve its goal, because it needs the Javascript and HTML to be minified with existing configurations, and then it inlines the generated template cache code. It also assumes that you have a module called `MY_MODULE_NAME`.
44

55

66
1. Install packages [gulp-substituter](https://www.npmjs.org/package/gulp-substituter) and [gulp-angular-templatecache](https://www.npmjs.org/package/gulp-angular-templatecache) package <br>
@@ -52,11 +52,11 @@ gulp.task('templates', ['index'], function(cb) {
5252
});
5353
```
5454

55-
3. Add the following to your Pho configuration <br>
55+
3. Optionally, add the following to your Pho configuration <br>
5656
`defaultDependencies: ['templates']`
5757

5858
4. Add the following to your page, after loading AngularJS and your controllers <br>
5959
`<!-- substitute:templates -->`
6060

61-
5. Run the task compilation <br>
61+
5. Run the new task <br>
6262
`gulp templates`

0 commit comments

Comments
 (0)