How to Create component and services in angularjs

By | March 7, 2019

Create Component
—————-

here dashboard component will be created with folder dashboard.So inside Dashboard folder following files will be available

src/app/dashboard/dashboard.component.html
src/app/dashboard/dashboard.component.ts

Service,Guards Creation
—————-
here authentication guard service is created using the following commands

it will generate the following two files inside services,guards folders
src/app/services/authentication.ts
src/app/guards/authentication.guard.ts