Re: [AngularJS] Re: Angular 2 and Rails 5, asset pipeline or no?

2016-01-01 Thread Vincent Zhu
I ended up doing, except with gulp. > > Cheers > On Jan 1, 2016 5:56 PM, "Vincent Zhu" > > wrote: > >> Hi, Amrit >> I was there. >> My solution is using npm + tsc + watchify, you will need to write the js >> code in TS, tsc into js, then us

[AngularJS] Re: Angular 2 and Rails 5, asset pipeline or no?

2016-01-01 Thread Vincent Zhu
Hi, Amrit I was there. My solution is using npm + tsc + watchify, you will need to write the js code in TS, tsc into js, then use watchify to bundle required npm modules. On Thursday, December 24, 2015 at 3:19:09 AM UTC+8, Amrit Kahlon wrote: > > What is the best way to set up a project using an

Re: [AngularJS] Re: best way to handle templates in angular2.

2016-01-01 Thread Vincent Zhu
lti-line template strings* > . > > >1. template:` >2. {{title}} >3. {{hero.name}} details! >4. id: {{hero.id}} >5. name: {{hero.name}} >6. ` > > > https://angular.io/docs/ts/latest/tutorial/toh-pt1.html > > 2016-01-01 22:09 GMT+09:00 Vi

[AngularJS] Re: best way to handle templates in angular2.

2016-01-01 Thread Vincent Zhu
good news! thanks, hope the team can streamline the whole process On Saturday, January 2, 2016 at 1:12:30 AM UTC+8, Eric Martinez wrote: > > Vincent, > > in future releases there will be offline compilation which means the HTML > will be part of the JS, or in separated files. You can read thi

[AngularJS] Re: best way to handle templates in angular2.

2016-01-01 Thread Vincent Zhu
uld be done via > webpack. Here you find a starter-kit for angular 2 that shows how to do > that: > > https://github.com/AngularClass/angular2-webpack-starter > > Wishes, > Manfred > > Am Freitag, 1. Januar 2016 14:09:50 UTC+1 schrieb Vincent Zhu: >> >> Thanks, It

[AngularJS] Re: best way to handle templates in angular2.

2016-01-01 Thread Vincent Zhu
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+unsubscr...@googlegroups.com. To post to this grou

[AngularJS] Angular - 2

2015-12-31 Thread Vincent Zhu
As far as I know, there is very few info around. I think the best doc would be the official one, you can take the QuickStart, and then go for the tutorial. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop re

[AngularJS] best way to handle templates in angular2.

2015-12-31 Thread Vincent zhu
I wonder how you guys organize the templates when we don't use inline template in angular2. Using templateUrl will load the file one by one, which is not good way to go in production, can we embed the templates into one file and load it? I used to do it in angular1 by $templateCache and $compile.