Skip to content

Instantly share code, notes, and snippets.

@jagad89
Last active February 2, 2019 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jagad89/d160a220a455313654b528e1f1f0a248 to your computer and use it in GitHub Desktop.
Save jagad89/d160a220a455313654b528e1f1f0a248 to your computer and use it in GitHub Desktop.
Angular note
Install angular cli
> npm install -g @angular/cli
Create project with Angual CLI
> ng new <project-name>
eg.
> ng new blog
Start Angular server and open app in browser
> ng serve --open
This will create basic folder structure of Angular.
Mostly we code in src/app folder.
angular.json : file which help angular cli to find entry point
main.ts: starting point of angular application
Modules: Modules are packaging which contains component.
Components: Components are UI elements, one component can use multipe component. If you familiar with MVC pattern, Component is equivalent to controller part.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment