Get started
Install Angular Install Motivation
Tutorial
Overview TDD Model setup API routes Angular Http Angular Auth
Response Macros
Overview Validations
JWT Authentication
Overview Install Usage

This project has been archived. If you're curious, check out one of my latest courses:

If you work with JavaScript, check out the fetch use cases and JavaScript projects.

Thank you! — Jad Joubran

Angular Install

Installation steps for your Angular app

Where should you install Angular?

A common dilemma when setting up your Laravel & Angular app is whether you should install your Angular app inside your Laravel App.

The answer is: it depends.

It depends on the project size, number of developers & your personal preference.

Our personal recommendation would be to separate these 2 apps. Have one repository for Laravel (acting as an API) and another repo for your Angular app (front-end).

The benefit of this is clear separation, easier & separate deployment of your backend & front-end.

Angular Setup

You need to globally install the Angular CLI (official docs)

npm install -g @angular/cli

then you can create your new app by running:

ng new my-app-name

then cd into the newly created folder and serve your application:

ng serve

AltStyle によって変換されたページ (->オリジナル) /