Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate Angular 2 (angular-cli) app into Sails.js

I need to integrate the app generated by angular-cli into Sails.js. I come from php background so I am new to both these frameworks.

  1. How do I set them up as one?
  2. How do I run ng serve and/or sails lift?
  3. How do I manage Angular routes vs Sails routes?

Thanks.

like image 709
Besto Avatar asked Oct 26 '16 13:10

Besto


1 Answers

following blog can help you to integrate sails with angular 2 http://sharpten.com/blog/2016/02/02/integrating-angular-2-with-sails-js.html

you can download code from https://github.com/xmaestro/sails-angular2

like image 105
Arjun Kava Avatar answered Oct 04 '22 02:10

Arjun Kava