Skip to content

Instantly share code, notes, and snippets.

Daphne Maddox laurelnaiad

Block or report user

Report or block laurelnaiad

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View authRoute.js
authRouteProvider.$inject = ['$routeProvider'];
function authRouteProvider ($routeProvider) {
* Creates a wapper controller on the one that is specified in the constructor.
* currentUser__ and userRole__ are late-bound, as is $location.
* bound to the route, or wraps the controller in param
* so the authentication check is run before the original controller is executed
* @param currentController
* @return {Function} The wrapper controller
laurelnaiad / angular-autoload.js
Last active Dec 17, 2015 — forked from nateabele/angular-autoload.js
nateabele's autoload patch, comments by stu-salsbury
View angular-autoload.js
* Naive AngularJS module autoloader; depends on require.js.
* Usage:
* angular.autoLoad({
* 'ngResource': '/js/angular-resource-1.0.1.min.js',
* 'google-maps': '/js/angular-google-maps.js',
* 'ui.bootstrap': '/js/ui/ui-bootstrap-custom-tpls-0.4.0.min.js',
* 'module.split.over.multiple.files': ['/js/file1.js', '/js/file2.js']
You can’t perform that action at this time.