Create a sample application in angular 2 (details mentioned below). Purpose of this application is to showcase how you utilize the various features offered by angular framework such as (components, services, directives, routing, forms, etc..) and apply best practices during development cycle. Also, if you could add some unit test to the code that will be really helpful.
("Basic", "Advanced", "Pro") Set "Advanced" as Default
3.A Password field (is required and must be 8 character long with at least one character and one special character)
Display a warning message if the Form is invalid and was touched but only after user has stopped typing.
Display a warning message below each input if it's invalid and cumulative message at the top of the form with all the errors at the top of the form on submit.
If form is modified and clear is clicked, prompt user confirming that they are sure to discard the changes.
Upon submitting the form, you should simply print the Value of the Form in a separate page.
The following tools must exist within your PATH:
Install Angular-cli
npm install -g @angular/cli
Create ANGULAR2-DEMO app
ng new ANGULAR2-DEMO
cd ANGULAR2-DEMO
Build Angular App
npm install
ng serve --open
This project was generated with Angular CLI version 7.0.6.
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.
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
.
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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.