sguha-work / SampleAngular6

SampleAngular6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angular 6 sample projects

Usefull commands for angular

updating/installing angular

npm install @angular/cli@latest -g

generating component

npm g c components/

generating service

npm g s services/

display preview on browser

ng serve -o // omit '-o' will not open the link with your default browser

building output

ng build --prod // --dev will prepare a dev build with uncompressed JS files

sample 1

sample 2 - using basic service and basic templating

sample 3 - using jquery, bootstrap

sample 4 - REST API

sample 5 - Inter component communication using common service

sample 7 - component to component communication using event emitter

sample 9 - Data service

sample 10 - routing

About

SampleAngular6


Languages

Language:TypeScript 78.0%Language:JavaScript 13.2%Language:HTML 7.6%Language:CSS 0.7%Language:SCSS 0.5%