yes, right. the gulp-angular-embed-templates 
<https://www.google.com/url?q=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Fgulp-angular-embed-templates&sa=D&sntz=1&usg=AFQjCNGzozwDcXvBg1BU5s9UWFI79FoJoQ>
 does 
work with angular2. thanks.

On Friday, January 1, 2016 at 11:07:00 PM UTC+8, 姜信徳 wrote:
>
> 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 <zhu...@gmail.com <javascript:>>:
>
>> 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 angular+u...@googlegroups.com <javascript:>.
>> To post to this group, send email to ang...@googlegroups.com 
>> <javascript:>.
>> 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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to