laravel 5.2 - Starting with angular 2, what is the best approach? -


i had question regarding angular 2.

we using laravel 5.2 our backend or api provider , want write our frontend in angular 2. best way use them together?

  1. serve angular 2 files via laravel on same node.
  2. have separate nodes front end , backend, angular 2 runs on 1st node served node.js (as of examples on angular 2 show) , api services using laravel on 2nd node.

i couldn't find best guide satisfy 1st option. can suggest how proceed?

i believe both practices fine.

if host on same node, won't have specify api node when making calls. if see backend api being more general service other applications building, consider second, more general node.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -