@ardimedia/angular-portal-azure 0.2.16 → 0.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/apn.js CHANGED
@@ -931,7 +931,7 @@ var angularportalazure;
931
931
  };
932
932
  //this.vm.close = this.close;
933
933
  },
934
- controllerAs: 'ctrl'
934
+ controllerAs: 'vm'
935
935
  };
936
936
  }
937
937
  angular.module('angularportalazure').directive('azurePortalBlade', ['$window', 'angularportalazure.portalService', azurePortalBlade]);
@@ -977,10 +977,19 @@ var angularportalazure;
977
977
  (function (angularportalazure) {
978
978
  function azurePortalHome($window, $interpolate) {
979
979
  return {
980
- scope: { vm: '=options' },
980
+ restrict: 'E',
981
+ scope: {},
982
+ bindToController: { vm: '=options' },
981
983
  templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/home/home.html',
982
984
  link: function (scope, element, attrs, controller) {
983
- }
985
+ console.log('azurePortalHome.link()');
986
+ console.log(this);
987
+ },
988
+ controller: function () {
989
+ console.log('azurePortalHome.controller()');
990
+ console.log(this);
991
+ },
992
+ controllerAs: 'vm'
984
993
  };
985
994
  }
986
995
  angular.module('angularportalazure').directive('azurePortalHome', ['$window', '$interpolate', azurePortalHome]);
@@ -1013,7 +1022,7 @@ var angularportalazure;
1013
1022
  console.log('nav.controller()');
1014
1023
  console.log(this);
1015
1024
  },
1016
- controllerAs: 'ctrl'
1025
+ controllerAs: 'vm'
1017
1026
  };
1018
1027
  }
1019
1028
  angular.module('angularportalazure').directive('nav', ['$window', nav]);
@@ -1046,7 +1055,7 @@ var angularportalazure;
1046
1055
  console.log('navGrid.controller()');
1047
1056
  console.log(this);
1048
1057
  },
1049
- controllerAs: 'ctrl'
1058
+ controllerAs: 'vm'
1050
1059
  };
1051
1060
  }
1052
1061
  angular.module('angularportalazure').directive('navGrid', ['$window', navGrid]);
@@ -1,33 +1,33 @@
1
- /// <reference types="angular" />
2
- /// <reference path="../../domain/debug.ts" />
3
- /// <reference path="../../domain/portalservice.ts" />
4
-
5
- namespace angularportalazure {
6
- function azurePortalBlade($window: ng.IWindowService, portalService: angularportalazure.PortalService) {
7
- return {
8
- restrict: 'E',
9
- transclude: true,
10
- scope: {},
11
- bindToController: { vm: '=vm' },
12
- templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
13
- link: function (scope, element, attrs, controller) {
14
- console.log('azurePortalBlade.link()');
15
- console.log(this);
16
- //#region the following code makes sure, that a function scope.vm.close is available
17
-
18
- if (scope.vm === undefined) { scope.vm = {}; }
19
- if (scope.vm.close === undefined) {
20
- scope.vm.close = function () {
21
- angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
22
- portalService.bladeArea.clearLastLevel();
23
- }
24
- }
25
-
26
- //#endregion
27
- },
28
- controller: function () {
29
- console.log('azurePortalBlade.controller()');
30
- console.log(this);
1
+ /// <reference types="angular" />
2
+ /// <reference path="../../domain/debug.ts" />
3
+ /// <reference path="../../domain/portalservice.ts" />
4
+
5
+ namespace angularportalazure {
6
+ function azurePortalBlade($window: ng.IWindowService, portalService: angularportalazure.PortalService) {
7
+ return {
8
+ restrict: 'E',
9
+ transclude: true,
10
+ scope: {},
11
+ bindToController: { vm: '=vm' },
12
+ templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
13
+ link: function (scope, element, attrs, controller) {
14
+ console.log('azurePortalBlade.link()');
15
+ console.log(this);
16
+ //#region the following code makes sure, that a function scope.vm.close is available
17
+
18
+ if (scope.vm === undefined) { scope.vm = {}; }
19
+ if (scope.vm.close === undefined) {
20
+ scope.vm.close = function () {
21
+ angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
22
+ portalService.bladeArea.clearLastLevel();
23
+ }
24
+ }
25
+
26
+ //#endregion
27
+ },
28
+ controller: function () {
29
+ console.log('azurePortalBlade.controller()');
30
+ console.log(this);
31
31
 
32
32
  //this.blade = this.vm.blade;
33
33
  //this.contentTitle = this.vm.contentTitle;
@@ -39,10 +39,10 @@ namespace angularportalazure {
39
39
  portalService.bladeArea.clearLastLevel();
40
40
  };
41
41
  //this.vm.close = this.close;
42
- },
43
- controllerAs: 'ctrl'
44
- };
45
- }
46
-
47
- angular.module('angularportalazure').directive('azurePortalBlade', ['$window', 'angularportalazure.portalService', azurePortalBlade]);
48
- }
42
+ },
43
+ controllerAs: 'vm'
44
+ };
45
+ }
46
+
47
+ angular.module('angularportalazure').directive('azurePortalBlade', ['$window', 'angularportalazure.portalService', azurePortalBlade]);
48
+ }
@@ -1,10 +1,19 @@
1
1
  namespace angularportalazure {
2
2
  function azurePortalHome($window, $interpolate) {
3
3
  return {
4
- scope: { vm: '=options' },
4
+ restrict: 'E',
5
+ scope: {},
6
+ bindToController: { vm: '=options' },
5
7
  templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/home/home.html',
6
8
  link: function (scope, element, attrs, controller) {
7
- }
9
+ console.log('azurePortalHome.link()');
10
+ console.log(this);
11
+ },
12
+ controller: function () {
13
+ console.log('azurePortalHome.controller()');
14
+ console.log(this);
15
+ },
16
+ controllerAs: 'vm'
8
17
  };
9
18
  }
10
19
 
@@ -19,7 +19,7 @@
19
19
  console.log('nav.controller()');
20
20
  console.log(this);
21
21
  },
22
- controllerAs: 'ctrl'
22
+ controllerAs: 'vm'
23
23
  };
24
24
  }
25
25
 
@@ -19,7 +19,7 @@
19
19
  console.log('navGrid.controller()');
20
20
  console.log(this);
21
21
  },
22
- controllerAs: 'ctrl'
22
+ controllerAs: 'vm'
23
23
  };
24
24
  }
25
25
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ardimedia/angular-portal-azure",
3
3
  "description": "Angular Portal Azure - GUI Framework.",
4
4
  "author": "Ardimedia Anstalt <info@ardimedia.com> (http://www.ardimedia.com)",
5
- "version": "0.2.16",
5
+ "version": "0.2.18",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {