Day 10: ui-router Basics

Monday, June 13, 2016

Topics

ui-router

NPM

Bower

Bootstrap

Angular Reference

Concepts

Directives

In the view (HTML), directives are specified with kebab-case (or “dasherized”)—that is, with words separated by hyphens. Within JavaScript, they are specified with camelCase.

  • ngApp: Auto-bootstraps an Angular application and (optionally) specifies the root Module.
  • ngController: Attaches a Controller to the view/DOM.
  • ngModel: Binds a form field to a property on the scope.
  • ngRepeat: Repeat an element for each item in a collection.
  • ngSubmit: Specifies custom behavior (often an invocation of a function property on the scope) when a form is submitted.
    • Automatically prevents default, unless the action attribute is set on the form.
  • ngClick: Specifies custom behavior when an element is clicked.
  • ngShow: Show an element only when the provided expression is truthy.
  • ngHide: The inverse of ngShow. Only show the element if the provided expression is falsey.

Projects