Skip to content

JohnMunsch/Root

Repository files navigation

Angular 2 Essentials

Code, links, and reference material for the Packt Publishing course Angular 2 Essentials.

Where to find updates!

https://github.com/JohnMunsch/Root

Important Notes!

This source code is current with the rc.4 release of Angular 2.

For examples upgraded to Angular 2 final, please pull the branch named "final" on Github. There are notes in the README.md of that branch detailing a couple of examples which are not yet working with the final release.

Each video gets its own directory for source. In most of those directories there is a start directory, which contains the source as it was at the start of the video before I add to it or make changes, and an end directory which corresponds to the final version of the code from the end of the video.

In each directory you will need to run "npm install" to install the Node.js packages for that particular directory. You will also need to stop any "gulp" command you have running in another directory.

Note: This course was written in anticipation of Gulp v4 being released around the same time. As a result the package.json files install the pre-release version of Gulp v4. After v4 is released I'll come back and update the package.json files appropriately.

Video 1.1

Video 1.2

Video 1.3

TypeScript

Example code for the TypeScript Playground:

function greeter(person) {
    return `Hello, ${ person }`;
}

var user = "Jane User";

document.body.innerHTML = greeter(user);

Installation Steps

  1. Node.js

  2. The command to install the global packages with NPM (please see the note at the top of this README about Gulp v4): npm install -g "gulpjs/gulp-cli" typescript

  3. cd to "Section 1/Video 1.4/start" and run npm install

This will install any local packages needed for this project into the node_modules directory.

Video 1.4

Be sure you've already done all the installation from the previous video and then run: gulp

Video 1.5

Video 1.6

Video 2.1

Gulp

Grunt

Gulp Plugins Mentioned in the Video

Node.js

Video 2.2

Links Mentioned in the Video

Video 3.1

Material Design Lite

Links Mentioned in the Video

Video 3.2

Links Mentioned in the Video

Video 3.3

Video 3.4

Yahoo's Weather API

https://developer.yahoo.com/weather/

This is the example YQL query from the video: https://query.yahooapis.com/v1/public/yql?q=select%20item.condition%20from%20weather.forecast%20where%20woeid%20in%20%28select%20woeid%20from%20geo.places%281%29%20where%20text%3D%22fort%20worth%2C%20ak%22%29&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys

Links Mentioned in the Video

Video 4.1

The Angular 2 Cheat Sheet

Links Mentioned in the Video

https://angular.io/docs/ts/latest/guide/template-syntax.html

Video 4.2

Video 4.3

Angular 2's in depth explanation of how * and templates relate

Links Mentioned in the Video

Video 4.4

Video 4.5

Video 5.1

Links Mentioned in the Video

Video 5.2

Links Mentioned in the Video

Video 5.3

To run the server used by the example in this video:

node appServer.js

Video 6.1

To run the server used by the example in this video:

node stupidSimpleServer.js

Video 6.2

Links Mentioned in the Video

Video 6.3

Video 7.1

Links Mentioned in the Video

Video 7.2

Links Mentioned in the Video

Video 7.3

ansible-playbook -i hosts -b configure.yml

Ansible

Links Mentioned in the Video

Video 7.4

ansible-playbook ping.yml

ansible-playbook deploy.yml

More Ansible Links

  • Ansible Galaxy - A repository for shared Ansible roles and playbooks.
  • Ansible Modules Index - Note: This is not the entire universe of modules, many are available from third parties. So be sure to search if you can't find an Ansible module for what you need.

Video 7.5

vagrant up

ansible-playbook -i testhosts -b configure.yml deploy.yml

Vagrant Server

VirtualBox

Vagrant

Further Learning

ES6/ES2015

  • ES6 Katas - One of my favorite ways to start learning ES6 is to be forced to put it to immediate use. This site has 70+ pages worth of unit tests which are all broken. You'll correct the ES6 JavaScript code to fix those tests and in the process learn lots about using it.

About

Code, links, and reference material for the Packt Publishing course Angular 2 Essentials.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors