222
schangxiang@126.com
2025-09-29 f782248da68c035aae12f902f29d828e9867abb0
1
2
3
4
5
6
7
8
9
10
11
12
angular.module('myContainer', []).directive('myContainer', function() {
  return {
    restrict: 'E',
    template: '<highlander></highlander>',
    controllerAs: 'vm',
    bindToController: true,
    controller: function($element) {
      var vm = this;
      vm.highlanders = $element[0].getElementsByTagName('highlander');
    }
  };
});