Angular Commands - madhusudana30/Spring-Boot-Angular GitHub Wiki

  • ng new - creates new project
  • ng build - Generates Production Code
  • ng serve - Start Runtime environment localhost:4200
  • ng e2e -end to end test
  • ng test - Unit Test
  • ng lint - to test coding standards
  • ng help -help

To Generate New Angular Component

  • ng generate component componentName

  • C:\Madhu\SpringBootAndAngularJsWorkspace\todo>ng generate component welcome CREATE src/app/welcome/welcome.component.html (26 bytes) CREATE src/app/welcome/welcome.component.spec.ts (635 bytes) CREATE src/app/welcome/welcome.component.ts (273 bytes) CREATE src/app/welcome/welcome.component.css (0 bytes) UPDATE src/app/app.module.ts (479 bytes)

Make sure name is correct otherwise you have to change manual


  • https://www.pluralsight.com/guides/one-and-two-way-data-binding-angular
  • User Name: <input type="text" name="userName" id="userName" value="{{userName}}" [(ngModel)]='userName'/>
  • Password: <input type="password" name="password" id="password" value="{{password}}"/>
  • <button (click)='handleLogin($event)'>Login</button>
⚠️ **GitHub.com Fallback** ⚠️