Sha256: 54165b2988575c2750901865466db8da4f2bf435551308cb3eb5e134a66572ec

Contents?: true

Size: 1.46 KB

Versions: 205

Compression:

Stored size: 1.46 KB

Contents

'use strict';

angular.module('ui.sortable.testDirectives', [])
  .directive('uiSortableSimpleTestDirective',
    function() {
      return {
        restrict: 'AE',
        scope: true,
        require: '?ngModel',
        template: '<div>Directive: <span class="itemContent" ng-bind="text"></span> !!!</div>',
        link: function(scope, element, attrs) {
          scope.$watch(attrs.ngModel, function(value) {
            scope.text = value;
          });
        }
      };
    }
  )
  .directive('uiSortableDestroyableTestDirective',
    function() {
      return {
        restrict: 'AE',
        scope: true,
        require: '?ngModel',
        template: '<div>$destroy(able) Directive: <span class="itemContent" ng-bind="text"></span> !!!</div>',
        link: function(scope, element, attrs) {
          scope.$watch(attrs.ngModel, function(value) {
            scope.text = value;
          });

          element.bind('$destroy', function() {
            element.html('');
          });
        }
      };
    }
  ).directive('uiSortableTransclusionTestDirective',
    function() {
      return {
        restrict: 'E',
        transclude: true,
        scope: true,
        template: '<div>' +
                    '<h1>Transclusion Directive</h1>' +
                    '<div>' +
                      '<div>' +
                        '<ng-transclude></ng-transclude>' +
                      '</div>' +
                    '</div>' +
                  '</div>'
      };
    }
  );

Version data entries

205 entries across 205 versions & 1 rubygems

Version Path
promethee-1.11.9 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.11.8 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.11.7 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.11.6 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.11.5 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.11.4 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.11.3 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.11.2 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.11.1 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.11.0 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.10.9 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.10.8 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.10.7 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.10.6 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.10.5 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.10.4 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.10.3 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.10.2 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.10.1 node_modules/angular-ui-sortable/test/sortable.test-directives.js
promethee-1.10.0 node_modules/angular-ui-sortable/test/sortable.test-directives.js