How to integrate an Angular 2 application (angular-cli) in Sails.js

I need to integrate the angular-cli generated application into Sails.js . I came from php background, so I am new to both of these frames.

  • How to configure them as one?
  • How to run ng serve and / or sails lift ?
  • How do I manage Angular route vs Sails routes?

Thanks.

+6
source share
2 answers

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

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

+3
source

See the skeleton for Sails and Angular 2

It also integrates the grumbling task to automate development.

Angular 4 client (this is the same as Angular2) + Bootstrap 4

Node JS server (it uses Sails as an MVC infrastructure)

0
source

Source: https://habr.com/ru/post/1011719/


All Articles