Tower String Audit

This commit is contained in:
Jared Tabor
2017-07-12 16:12:25 -07:00
parent e053d2c33a
commit 2c6e229e71
4 changed files with 8 additions and 5 deletions

View File

@@ -1,3 +1,3 @@
{ {
"BRAND_NAME": "Tower"
} }

View File

@@ -1,9 +1,11 @@
import EventService from './event.service'; import EventService from './event.service';
import PathService from './path.service'; import PathService from './path.service';
import BaseStringService from './base-string.service'; import BaseStringService from './base-string.service';
import AppStrings from './app.strings';
angular angular
.module('at.lib.services', []) .module('at.lib.services', [])
.service('EventService', EventService) .service('EventService', EventService)
.service('PathService', PathService) .service('PathService', PathService)
.service('BaseStringService', BaseStringService); .service('BaseStringService', BaseStringService)
.service('AppStrings', AppStrings);

View File

@@ -1,7 +1,8 @@
export default export default
['$scope', '$state', 'ConfigService', ['$scope', '$state', 'ConfigService', 'AppStrings',
function($scope, $state, ConfigService){ function($scope, $state, ConfigService, AppStrings){
var init = function(){ var init = function(){
$scope.name = AppStrings.get('BRAND_NAME');
ConfigService.getConfig() ConfigService.getConfig()
.then(function(config){ .then(function(config){
$scope.version = config.version.split('-')[0]; $scope.version = config.version.split('-')[0];

View File

@@ -11,7 +11,7 @@
<!-- Don't indent this properly, you'll break the cow --> <!-- Don't indent this properly, you'll break the cow -->
<pre class="About-cowsayCode"> <pre class="About-cowsayCode">
_______________ _______________
< Tower {{version}} > < {{name}} {{version}} >
--------------- ---------------
\ ^__^ \ ^__^
\ (oo)\_______ \ (oo)\_______