PageSourceSearch

https://www.boligsilkeborg.dk/Scripts/Angular/Directives/sidebarwi…xKv7x-mD3UEhRA6vZT2yGHxdo0FrwA_gf6uwbx6gxc1

js boligsilkeborg.dk collected 2026-10-08 23:30:22 UTC 999 bytes, 31 lines download raw bytes

1angular.module("BoligSilkeborg").directive("sidebarWishes", ["WishService", function (wishService) {
2    "use strict";
3    return {
4        restrict: "E",
5        scope: {
6
7        },
8        templateUrl: "/Angular/Templates/sidebarwishes.html",
9        link: function (scope, element, attr) {
10            function init() {
11                wishService.refreshWishes();
12                wishService.getCartOrWishesPage().success(function(link) {
13                    scope.cartOrWishesPage = link;
14                });
15            }
16
17            scope.wishCount = function () {
18                var wishLength = 0;
19                var wishes = wishService.getWishes();
20                for (var i = 0; i < wishes.length; i++) {
21                    for (var j = 0; j < wishes[i].tenancies.length; j++) {
22                        wishLength++;
23                    }
24                }
25                return wishLength;
26            };
27
28            init();
29        }
30    }
31}]);

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.