Cool, share some my confusions with you. ;-) how do you use template if not using gulp? simply inline template? Also, how do you handle the rails asset pipeline? like do you use asset_path ?
On Saturday, January 2, 2016 at 10:10:54 AM UTC+8, Amrit Kahlon wrote: > > Yep that's what I ended up doing, except with gulp. > > Cheers > On Jan 1, 2016 5:56 PM, "Vincent Zhu" <[email protected] <javascript:>> > 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 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 angular 2 and rails 5? I >>> was using it with angular 1.5 and typescript before, and had the asset >>> pipeline setup with the typescript rails gem. It all seemed to work fine. >>> >>> Now I'm not quite sure how this systemjs works, or how to use angular 2 >>> without it. What I'm looking for is all of my angular code somewhere in the >>> repo, compiling the files into the public folder un-concatenated. Would >>> this be the best way to do it? Another way I was thinking was have a >>> development server running as well in a different folder, work on it as two >>> separate apps, then when it comes time to production, minify all the files >>> (but not concatenate them) and serve them up in the public folder. >>> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "AngularJS" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/angular/OWKC-ukgsx8/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <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 [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.
