-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.js
More file actions
34 lines (32 loc) · 1.01 KB
/
Copy pathapp.js
File metadata and controls
34 lines (32 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
var epiLancer = angular.module("epiLancer", ["ui.router"]);
epiLancer.directive("dragon", function() {
return function(scope, element, attrs) {
var classes = ["dragon", "butterfly", "spider", "duckling"];
element.bind("mouseenter", function() {
var previousClass = classes[0];
var nextClass = classes.pop();
classes.unshift(nextClass);
element.removeClass(previousClass);
element.addClass(nextClass);
});
}
});
epiLancer.config(function($stateProvider) {
$stateProvider.state("home", {
url: '',
views: {
'header': {
templateUrl: "partials/header.html",
controller: "TilesCtrl"
},
'body': {
templateUrl: "partials/home.html",
controller: "TilesCtrl"
},
'footer': {
templateUrl: "partials/footer.html",
controller: "TilesCtrl"
}
}
});
});