dhythm / angular-sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AngularSample

Create a new project

ng new PROJECT_NAME

Run the project

ng serve

Install Angular Material

ng add @angular/material

Add a component

ng g component NAME

Add a service

ng g service NAME

Angular Syntax

Binding

Property Binding is the way to pass a value from ViewModel to View
  -> [value]="xxx"
Event Binding is the way to pass a event from View to ViewModel
  -> (click)="xxx"
Two Way Data Binding is the way includes the feature both Property and Event binding.
  -> [(value)]="xxx"

About


Languages

Language:TypeScript 67.9%Language:CSS 16.7%Language:HTML 10.1%Language:JavaScript 5.3%