Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
Toggle compileProvider debug info with localstorage flag
Browse files Browse the repository at this point in the history
  • Loading branch information
radupotop committed May 4, 2016
1 parent ce52928 commit fab13fb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/scripts/app.js
Expand Up @@ -11,9 +11,13 @@ var App = angular.module('App', ['ngRoute', 'ngResource', 'templates']);
/*
App configuration. Enable things as needed.
*/
App.config(function($logProvider, $routeProvider, $httpProvider){
App.config(function($logProvider, $routeProvider, $httpProvider, $compileProvider){

$logProvider.debugEnabled(localStorage.debug == true); // jshint ignore:line
var enableDebug = localStorage.debug == true; // jshint ignore:line

$logProvider.debugEnabled(enableDebug);

$compileProvider.debugInfoEnabled(enableDebug);

// $httpProvider.interceptors.push('HttpInterceptor');

Expand Down

0 comments on commit fab13fb

Please sign in to comment.