Sha256: 50f46ad3bdbba49ad83476e580114cfa9e46d47b92d71dcd9c4bd206529a9f86
Contents?: true
Size: 942 Bytes
Versions: 6
Compression:
Stored size: 942 Bytes
Contents
angular.module("machinery-compare", []); angular.module("machinery-compare") .config(function($locationProvider) { $locationProvider.html5Mode({enabled: true, requireBase: false}); }) .controller("compareController", function($scope) { $scope.diff = getDiff(); }) .directive("onlyInA", function() { return { template: "<h3>Only in '{{diff.meta.description_a}}':</h3>" }; }) .directive("onlyInB", function() { return { template: "<h3>Only in '{{diff.meta.description_b}}':</h3>" }; }) .directive("inBoth", function() { return { template: "<h3>In both descriptions:</h3>" }; }) .directive("renderTemplate", function() { return { restrict: "E", scope: { object: "=object" }, link: function(scope, element, attrs) { scope.templateUrl = attrs.template; }, template: '<div ng-include="templateUrl"></div>' }; });
Version data entries
6 entries across 6 versions & 1 rubygems