Angular Material dependancies

This commit is contained in:
Alex Wolfe 2015-02-19 09:51:07 -08:00
parent 85de9af769
commit e437fdb7b2
3 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,9 @@
<!-- Angular Material Dependencies -->
script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.js")
script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular-animate.js")
script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular-aria.js")
<!-- Angular Material Javascript using RawGit to load directly from `bower-material/master` -->
script(src="https://rawgit.com/angular/bower-material/master/angular-material.js")
script(src="/resources/js/site.js")

View File

@ -1,8 +1,9 @@
doctype
html(lang="en" ng-app="StarterApp")
head
link(rel="stylesheet" href="/resources/css/main.css")
!= partial("/_includes/_head-include")
body(layout="column" ng-controller="AppCtrl")
!= partial("/_includes/_main-nav")
!= yield
!= partial("/_includes/_footer")
!= partial("/_includes/_scripts-include")

View File

@ -0,0 +1,8 @@
var app = angular.module('StarterApp', ['ngMaterial']);
app.controller('AppCtrl', ['$scope', '$mdSidenav', function($scope, $mdSidenav){
$scope.toggleSidenav = function(menuId) {
$mdSidenav(menuId).toggle();
};
}]);