/angular-intermediate-boilerplate

An intermediate-level Angular Application with API and Routing with a guard implemented

Primary LanguageTypeScript

AngularStarterProject

This project was generated with Angular CLI version 6.0.8.

Highlights of the project

  1. All the 3 ways of Data-Sharing: @Input [Parent to Child] @Output [Child to Parent] @Service
  2. Creating custom pipes.
  3. Authentication by Login: 3.1. Creating Auth-Guard 3.2. Creating Interceptor for restricting unauthorized user
  4. Creating barrels and paths to access the files in a better way
  5. Creating Nested Components
  6. Creating blueprint of data by creating a model.
  7. Creating an Http-API and fetch the data [used MockData for sample]
  8. Creating custom Module
  9. Implementing Lazy loading and child-routing.
  10. Implementaion of loader by creating a common service and validation in form.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.