Giter Site home page Giter Site logo

angular's Introduction

install node //binary or repository

node -v

npm install -g @angular/cli //or with sudo

ng -v //ng --version

ng new ngApp cd ngApp ng serve --open 4200

ng generate component hero-detail

ng generate service message // no inclusion in providers ng generate service message --module=app

ng generate module app-routing --flat --module=app

npm install

npm install codelyzer-cli

e2e -> end to end tests, basically automated tests, simulates real user

app folder modules and components assets -> images and texts environments -> dev env, prod env

main.ts type script starting point of program, same concept bootstraps the ng module

package.json it z similar to pom.xml

karma a test runner for js code

tsconfig.json type script configuraton compilation

tslint.json no f

webpack is a tool which a build automation tool like maven it goes through all of our scripts and styles and put them in a bundle and minifies it this is for optimization polyfills.bundles.js - all the scripts to fills the gap, js angular needs and js browser supports
main.bundle.js - all the src code of our app styles.bundle.js - style sheets vendor.bundle.js - all the 3rd party libs

Hot Module Replacement (HMR) whenever the src code changes webpack automatically refreshes the browser

and it automaticaly injects thes bundles to index.html

todo:

read about:

general mistakes security holes and drawbacks

Future stats for demands on angular developers

commands

npm install typescript

npm install -g @angular-cli (not angular-cli)

ng new myApp

cd myApp

ng serve --open


kudvenkat

ng new AngularCrud --skip-tests true

ng g c employee/employeeList --spec false --flat true

ng serve -o --base-href /hr/

angular's People

Contributors

rathandev avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.