1×
Become a member
to unlock all features

Create egghead account to access 5000+ tutorials and resources from expert developers.

Create account
Autoplay

    AngularJS 1.2.x Routing Changes: ngRoute

    In AngularJS 1.2.x routing has changed. It is now required that you explicitly import ngRoute in your applications! This lesson uses an older version of AngularJS that pre-dates this change.

    Load the ngRoute library
    html<script src="angular.js">
    <script src="angular-route.js">
    Import the ngRoute module
    javascriptangular.module('app', ['ngRoute']);

    Scroll down to view the full corrected code for this lesson.

    Basic Promises in AngularJS

    angularjsAngularJS

    An AngularJS promise is a mechanism that lets you defer a stated action or series of actions at an earlier point of time until you explicitly declare that promise to be fulfilled (or resolved). Promises are useful for asynchronous operations. This video introduces the basic way to declare and resolve promises.