Skip to content

Instantly share code, notes, and snippets.

@SaintPeter
SaintPeter / angular-fullstack-redirect.js
Last active August 29, 2015 14:27 — forked from dcoffey3296/angular-fullstack-redirect.js
Authentication redirect for angular-fullstack yeoman generator
// The Yeoman angular-fullstack generator allows for authentication to be required
// when a user goes to a given route. To enable this behavior, add
authenticate: true
// to your /client/app/<routename>/<routename>.js file, in the .when routing block.
// like this:
angular.module('meanApp')
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'app/main/main.html',