In this article, We will discuss about What are the Steps re quired to Create an angular 2 application.
Step 1:-
---------
Create package.json file with dependencies.
Step 2:-
---------
run npm install
This will read package.json automatically to install node packages provided with dependencies.
Stpe 3:-
---------
Creating js file for systemjs module loader.
This js file should contain mapping of node packages to js files and startup file for execution should be provided.
systemjs module loader will goto application folder, in this folder it will look for startup file for execution,based on component class requirement node package js file will be loaded.
Step 4:-
---------
Create tsconfig.json file.
This file is required for typescript compiler.
Step 5:-
---------
Create ts file with Component and module.
Step 6:-
---------
Create html page to host angular app.
Step 7:-
---------
run tsc with in integrated terminal.
Step 8:-
---------
install http-server as node package.
Step 9:-
---------
run http-server
Step 10:-
-----------
goto browser to run html page using url,
http://localhost:8080/htmlpage
0 comments:
Post a Comment