Angular
  • Introduction
  • Angular Command
  • Oshop Project
    • Oshop Tips
    • Product Management Module
  • Redux
  • Angular Tips
    • Communicate with Angular components outside of Angular
    • Safe Pipe
    • Highlight attachment file
    • Set CSS background-image value in Angular
  • Angular DatePicker Tips
  • Angular 6 Breadcrumb
Powered by GitBook
On this page
  • Ng command
  • Create new project
  • Create new Component
  • Create new service
  • Start ng server
  • Build application
  • Add bootstrap to project

Was this helpful?

Angular Command

Ng command

Create new project

>ng new project

Create new Component

>ng g c component

Create new service

>ng g s service

Start ng server

>ng serve or >ng serve --prod

Build application

>ng build or >ng build --prod

Add bootstrap to project

  • install bootstrap

>npm install bootstrap --save

  • include bootstrap to stlye.css

@import "~bootstrap/dist/css/bootstrap.css";

PreviousIntroductionNextOshop Project

Last updated 6 years ago

Was this helpful?