Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var showLog = true;
- (function() {
- 'use strict';
- angular
- .module('moduleName')
- .factory('cLog', cLog);
- cLog.$inject = [];
- function cLog() {
- return {
- log: log
- };
- function log(str) {
- if(showLog)
- console.log(str);
- }
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement