Skip to content

Instantly share code, notes, and snippets.

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'
};
dtvModule.directive('messagekey', function($http) {
var loadTimeout;
var keys = {};
return {
restrict: 'A',
link: link
};
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
// 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({
angular
.module('test.routes', ['ui.state'])
.config(function($routeProvider, $stateProvider) {
// automatically redirect to #/test
$routeProvider
.otherwise({ redirectTo: '/test' });
angular
.module('skookum.mobile.feeditem', [])
.directive('sdwFeeditem', function($compile) {
return {
restrict: 'EA',
require: 'sdwFeeditem',
controller: feeditemController,
link: feeditemLink,
replace: true,
<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) {
.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) {
.on('click', function() {
scope.$apply(function() {
scope.$emit('details', { url: scope.movie.mobileDetailsLinkUrl });
});
})
$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
});