Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write Angular 2 code inside Rails application

I am a complete novice in Ruby on Rails. Just have learned some CRUD functionalities with RoR. I am also very new in Angualr 2 and currently learning it.

I have seen RoR has it's own HTML template engine just like Angular.

My question is how can I use my Angular 2 knowledge (very little knowledge indeed) to create front end of RoR application?

I am using Gulp as transpiler for Typescript. Can I use the same in RoR?

Is there any seed project with Angular 2 and Rails 4 so that I can grab quickly?

like image 243
Munir Hoque Avatar asked Mar 01 '26 21:03

Munir Hoque


1 Answers

I would recommend using Angular CLI. Here's an Angular/Rails tutorial I wrote that uses Angular CLI.

If you want to use an Angular 2 seed, there's a tutorial for that too, but that's not what I usually do.

like image 130
Jason Swett Avatar answered Mar 04 '26 10:03

Jason Swett



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!