Compare Page Revisions
« Older Revision - Back to Page History - Newer Revision »
Table of Contents [Hide/Show]
Precautions Getting Started Angular Variables Modules Bindings Dependency Injection Routes Controllers and Scope Services Models Directives Filters
<script type="text/javascript" src="/Scripts/angular.js"></script> <script type="text/javascript" src="/Scripts/angular-resource.js"></script> <script type="text/javascript" src="/Scripts/OtherScripts.js"></script>
var MyApp = angular.module('MyAppName', ['ngResource']);
data-ng-app
<html data-ng-app='MyAppName'>
$compile
$element
$first
$filter
$http
$index
$last
$location
$middle
$$phase
$q
$resource
$rootScope
$routes
$routeProvider
ngRoute
$scope
$apply
$broadcast
$digest
$emit
$inject
$on
$onFailure
$onReady
$prepareForReady
$watch
$whenReady
App.config(['$routeProvider', function($routes) { $route.when('/',{ templateUrl : '/templates/home.html', controller : HomeCtrl }); $route.when('/register',{ templateUrl : '/templates/register.html', controller : RegisterCtrl }); $routes.otherwise({ redirectTo : '/' }); }]);
ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.