Angular Material dependancies
This commit is contained in:
parent
85de9af769
commit
e437fdb7b2
|
@ -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")
|
|
@ -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/_footer")
|
||||
!= partial("/_includes/_scripts-include")
|
|
@ -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();
|
||||
};
|
||||
|
||||
}]);
|
Loading…
Reference in New Issue