For Angular 1.X, We can use grunt(or gulp) plugin to embed templates to
$templateCache.
e.g. grunt-angular-templates
<https://www.npmjs.com/package/grunt-angular-templates>,
gulp-angular-embed-templates
<https://www.npmjs.com/package/gulp-angular-embed-templates>

It seems that *gulp-angular-embed-templates* is working for Angular 2.X.
http://stackoverflow.com/questions/29457885/how-do-i-add-js-html-files-to-a-template-in-angular-2-like-templatecache

Also Angular 2.X with TypeScript, we can use *Multi-line template strings*.


   1. template:`
   2. <h1>{{title}}</h1>
   3. <h2>{{hero.name}} details!</h2>
   4. <div><label>id: </label>{{hero.id}}</div>
   5. <div><label>name: </label>{{hero.name}}</div>
   6. `


https://angular.io/docs/ts/latest/tutorial/toh-pt1.html

2016-01-01 22:09 GMT+09:00 Vincent Zhu <[email protected]>:

> Thanks, It seems these bundling tools are for angular1?
>
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to