Skip to content

Angular

Thomas Czogalik edited this page Feb 10, 2021 · 10 revisions

Angular

Install

npm install -g @angular/cli

Project Creation

Create new project "my-app"

ng new my-app

Go to project folder and launch

cd my-app
//open, opens webbrowser on localhost:4200
ng serve --open 

Editor

cd my-app
code .

Coding

Create Component

creates a new folder, src/app/somename/ and generates the three files of the SomenameComponent

ng generate component somename

Create Service

Generates skeleton AppService class in src/app/app.service.ts

ng generate service app

Helpfull

Debuging

Debuging with IntelliJ

Tutorial

@Input

using Behaviour Subject

Clone this wiki locally