limingli0707 / angular2app-loginregistration Goto Github PK
View Code? Open in Web Editor NEWThis project forked from yarabatinaresh/angular2app-loginregistration
This is a sample application which contains Login and Registration Forms. This application built with Angular 2 and TypeScript. This sample uses a fake backend that stores users in HTML5 local storage. You can run this sample app using Angular CLI by following below steps, Step 1. Set up the Development Environment You need to set up your development environment before you can do anything. Install Node.js® and npm if they are not already on your machine. Install angular CLI through command line interface, Install npm install -g @angular/cli Step 2. Create a new project. Generate a new project and skeleton application by running the following commands: ng new application-name Step3: Run the application. Go to the project directory and launch the server. cd application-name ng serve --open Here ng serve command launches the server, watches your files, and rebuilds the app as you make changes to those files. Using the --open (or just -o) option will automatically open your browser on http://localhost:4200/. Step4: Open the component file (eg:app.component.html, app.component.css etc.) under path src/app and change any content or styles to see the changes on browser immediately without refresh the page manually.