This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Returns true or false wether or not the email passed as a parameter passes the test | |
function validateEmail (email) { | |
var emailRegex = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; | |
return emailRegex.test(email); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* AngularJS hack - This way we can get and decorate all custom directives | |
* in order to broadcast a custom directive events: $directiveAdd | |
**/ | |
// This is where all the custom directives will be stored | |
var $directives = []; | |
var originalModule = angular.module; | |
angular.module = function () { | |
var module = originalModule.apply(this, arguments); | |
var originalDirective = module.directive; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="libs/angular-css/angular-css.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myApp = angular.module('myApp', ['ngRoute','door3.css']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$routeProvider | |
.when('/tickets', { | |
templateUrl: 'tickets/tickets.html', | |
controller: 'ticketsCtrl', | |
css: 'tickets/tickets.css' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myApp.directive('itinerary', function () { | |
return { | |
restrict: 'E', | |
templateUrl: 'itinerary/itinerary.html', | |
css: 'itinerary/itinerary.css' | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$routeProvider | |
.when('/tickets', { | |
templateUrl: 'tickets/tickets.html', | |
controller: 'ticketsCtrl', | |
css: [ | |
{ | |
href: 'tickets/tickets.mobile.css', | |
media: '(max-width: 480px)' | |
}, { | |
href: 'tickets/tickets.tablet.css', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$routeProvider | |
.when('/page1', { | |
templateUrl: 'page1/page1.html', | |
controller: 'page1Ctrl', | |
css: { | |
href: 'page1/page1.css', | |
persist: true | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$routeProvider | |
.when('/page1', { | |
templateUrl: 'page1/page1.html', | |
controller: 'page1Ctrl', | |
css: { | |
href: 'page1/page1.css', | |
preload: true | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$routeProvider | |
.when('/page1', { | |
templateUrl: 'page1/page1.html', | |
controller: 'page1Ctrl', | |
css: { | |
href: 'page1/page1.css', | |
bustCache: true | |
} | |
}); |
OlderNewer