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
module.exports = { | |
use_stubs: false, | |
restart: false, | |
workers: 1, | |
redis_sessions: false, | |
silent: true, | |
minified_js: false, | |
use_timer: true, | |
api_host: 'dotcommacpro01.la.frd.directv.com:9099' | |
}; |
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
dtvModule.directive('messagekey', function($http) { | |
var loadTimeout; | |
var keys = {}; | |
return { | |
restrict: 'A', | |
link: link | |
}; |
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
var path = require('path'); | |
module.exports = function(app) { | |
var getImage = [ | |
app.users.matchOwner, | |
app.images.matchImage, | |
app.base.noCache, | |
app.base.normal, | |
app.users.createLocal |
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
// being used like: <div ng-repeat="item in rows()" class="s4-gridform-row"> | |
scope.rows = function() { | |
var rows = []; | |
// TODO: technically this is bad form, relying on order in properties (since properties have no order according to spec) | |
// It works for v1 though. | |
for (var key in scope.validations) { | |
rows.push({ |
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
angular | |
.module('test.routes', ['ui.state']) | |
.config(function($routeProvider, $stateProvider) { | |
// automatically redirect to #/test | |
$routeProvider | |
.otherwise({ redirectTo: '/test' }); |
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
angular | |
.module('skookum.mobile.feeditem', []) | |
.directive('sdwFeeditem', function($compile) { | |
return { | |
restrict: 'EA', | |
require: 'sdwFeeditem', | |
controller: feeditemController, | |
link: feeditemLink, | |
replace: true, |
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
<html ng-app='testApp'> | |
<body ng-controller='testController'> | |
<button ng-click='test()'>Menu</button> | |
<my-custom-directive id='needToAccess'></my-custom-directive> | |
</body> | |
<script> | |
angular | |
.module('testApp', []) | |
.controller('testController', function($scope) { |
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
.directive('sdwTopbarLeft', function() { | |
return { | |
restrict: 'EA', | |
require: '^sdwTopbar', | |
transclude: true, | |
template: '<div class="sdw-topbar-left" ng-transclude></div>', | |
link: topbarLeftLink | |
}; | |
function topbarSideLink(scope, element, attrs, controller) { |
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
.on('click', function() { | |
scope.$apply(function() { | |
scope.$emit('details', { url: scope.movie.mobileDetailsLinkUrl }); | |
}); | |
}) |
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
$scope.$on('details', function(event, args) { | |
console.log('location.path:', $location.path()); // outputs "/" | |
//document.location.hash = '/details/123'; // works | |
//$location.path('/details/123'); // doesn't work | |
$location.path('details/123'); // doesn't work | |
}); |