-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Spratley, Jonnie
committed
Dec 19, 2014
1 parent
e6d387f
commit 66f429d
Showing
20 changed files
with
598 additions
and
921 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
'use strict'; | ||
angular.module('angularCmsApp').controller('AppCtrl', function($scope, $rootScope, $http, $log, $route, $location, $routeParams, $cookieStore, cmsSessionService, DataService) { | ||
var App; | ||
App = Config; | ||
App.ds = DataService; | ||
App.route = $routeParams; | ||
App.session = cmsSessionService.getSession(); | ||
App.theme = $cookieStore.get('App.theme'); | ||
App.route = $route; | ||
App.location = $location; | ||
App.routeParams = $routeParams; | ||
App.roles = ['guest', 'user', 'admin']; | ||
$scope.name = 'AppCtrl'; | ||
window.App = $scope.App = $rootScope.App = App; | ||
return angular.element(document).ready(function() { | ||
return angular.element('.nav').bind('click', 'a', function(e) { | ||
return $log.info(e); | ||
}); | ||
}); | ||
angular.module('angularCmsApp').controller('AppCtrl', function ($scope, $rootScope, $http, $log, $route, $location, $routeParams, $cookieStore, cmsSessionService, DataService, cmsSocketService) { | ||
var App; | ||
App = angular.copy(Config); | ||
App.ds = DataService; | ||
App.socket = cmsSocketService; | ||
|
||
|
||
App.route = $routeParams; | ||
App.session = cmsSessionService.getSession(); | ||
App.theme = $cookieStore.get('App.theme'); | ||
App.route = $route; | ||
App.location = $location; | ||
App.routeParams = $routeParams; | ||
App.roles = ['guest', 'user', 'admin']; | ||
|
||
|
||
$scope.name = 'AppCtrl'; | ||
|
||
window.App = $scope.App = $rootScope.App = App; | ||
|
||
|
||
angular.element(document).ready(function () { | ||
angular.element('.nav').bind('click', 'a', function (e) { | ||
$log.info(e); | ||
}); | ||
}); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
|
||
/** | ||
@ngdoc filter | ||
@name angularCmsApp.filter:markdown | ||
@function | ||
@description | ||
@ngdoc filter | ||
@name angularCmsApp.filter:markdown | ||
@function | ||
@description | ||
This is a Markdown to HTML filter. | ||
*/ | ||
'use strict'; | ||
angular.module('angularCmsApp').filter('markdown', function() { | ||
return function(input) { | ||
return markdown.toHTML(input); | ||
}; | ||
angular.module('angularCmsApp').filter('markdown', function () { | ||
return function (input) { | ||
if(input){ | ||
return markdown.toHTML(input); | ||
} | ||
}; | ||
}); |
Oops, something went wrong.