nodejs is required (get to know npm)
command line is your friend.
Microsoft’s Visual Studio Code is pretty handy.
Typescript takes javascript type structures, then compiles them
They say use webpack for distribution
Apps use model-view controllers. The controller is called a “component.” It ties a view(or portion of the whole view) to a tag.
tsconfig.json tells us what type of script to compile to – we use ES5, commonjs formats
app.component is the standard place to make the
npm start
Component building:
CIDER
- Create your class
- Import your dependencies
- Decorate your class
- Enhance with composition
- Repeat for sub-components
RC4 into RC6
Consolidates components
angular cli install
$ npm install -g angular-cli $ ng new {app-name} --routing $ cd {app-name} $ ng serve
Using angular cli commands
Build a base class with unit test:
$ ng generate class {my-class} --spec
Build a service(business logic in a service):
$ ng generate service {my-service}
Gen a component(like navbar, sidebar, main-1, main-2, etc)
ng generate component {my-component}