PageSourceSearch

https://customer.nationalgrid.co.uk/public/javascripts/angular.breadcrumb.js

js nationalgrid.co.uk collected 2026-09-24 09:01:22 UTC 903 bytes, 27 lines download raw bytes

1 angular.module('page')
2.directive('coreBreadcrumb', ['$timeout', '$navigation', function ($timeout, $navigation) {
3    return {
4        template: $('#global-breadcrumb-template').html(),
5        replace: true,
6        scope: { trail: '<trail', handle: '@coreBreadcrumb' },
7        controller: ['$scope', function($scope) {
8            var selected;
9            var $nav = $navigation($scope, $scope.handle);
10            var undef;
11            
12            $nav.$watch('trail', function(trail) { 
13                if (trail != undef) {
14                    $scope.trail = trail ;
15                }
16            })
17            $nav.$watch('selected', function(link) { 
18                if (link != undef) {
19                    selected = link;
20                }
21            })
22            $scope.isSelectedLink = function(link) {
23                return (link == selected);
24            }
25        }]
26    }
27 }])

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.