-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
43 lines (41 loc) · 1.24 KB
/
script.js
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
35
36
37
38
39
40
41
42
43
var cionApp = angular.module('cionApp', ['ngRoute','ngAnimate','picardy.fontawesome']);
cionApp.config(function($routeProvider, $locationProvider) {
// $locationProvider.html5Mode(true).hashPrefix('!');
$routeProvider
.when('/', {
templateUrl : 'pages/inicio.html',
controller : 'mainController'
})
.when('/user', {
templateUrl : 'pages/user.html',
controller : 'userController'
})
.otherwise({ redirectTo: "/" });
});
cionApp.run(function($rootScope, $location) {
console.log('running');
});
cionApp.controller('mainController', function($scope, $routeParams) {
$scope.pageClass = 'page-all';
$(".element").typed({
strings: ["cool", "easy", "collaborative", "quick", "awesome","Texan","useful"],
typeSpeed: 30, // typing speed
loop: true, // loop on or off (true or false)
// callback: function(){ }
});
});
cionApp.controller('userController', function($scope, $routeParams) {
$scope.pageClass = 'page-all';
console.log($routeParams);
});
//SERVICIO DE BOOKMARKS
cionApp.factory( 'bmAPI', function($http) {
var productos = [];
var bmAPI = {
slider: function() {
var dog = 'yes';
return dog;
},
};
return bmAPI;
});