User:Taldin/Blacksmith Secret Blueprints (WIP)

This is a notebook I'm keeping for purposes of learning Angular JS from the ground up. You might find the notes and lessons here helpful in coming up to speed on Angular to program HabitsRPG.

Resources
The Angular JS tutorial

Tools
Plunker, a tool that lets you fiddle with Angular code. [Plunker site]

The Basics
Angular seems to be an HTML/XML based language. It means that everything is going to need to be enclosed in < > things. (Angle brackets.)  First and foremost are angle brackets, which are short for divisions, and are closed by matching ones. Anything enclosed inside that pair .... is a single division.

The opening division statement can also have stuff in it that defines a type of division. Lesson 1 includes this bit:

Decalres a 'ng-app' type, and ng-init sets some local variables to be starting values.

Later inside the section are things that create input fields using those variables.

Quantity:  Notice that the widget has a type, a minimum accepted value, and the variable 'qty' sourced from the ng-model. Turns out ng-model is a input assignation thing.