@ardimedia/angular-portal-azure 0.2.12 → 0.2.13

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
@@ -901,7 +901,7 @@ var angularportalazure;
901
901
  restrict: 'E',
902
902
  transclude: true,
903
903
  scope: {},
904
- bindToController: { vm: '=' },
904
+ bindToController: { vm: '=vm' },
905
905
  templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
906
906
  link: function (scope, element, attrs, controller) {
907
907
  console.log('azurePortalBlade.link()');
@@ -918,6 +918,7 @@ var angularportalazure;
918
918
  //#endregion
919
919
  },
920
920
  controller: function () {
921
+ console.log('azurePortalBlade.controller()');
921
922
  this.blade = this.vm.blade;
922
923
  this.contentTitle = this.vm.contentTitle;
923
924
  this.contentSubTitle = this.vm.contentSubTitle;
@@ -987,9 +988,8 @@ var angularportalazure;
987
988
  function nav($window) {
988
989
  return {
989
990
  restrict: 'E',
990
- //scope: { vm: '=viewModel' },
991
991
  scope: {},
992
- bindToController: { vm: '=' },
992
+ bindToController: { vm: '=viewModel' },
993
993
  templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
994
994
  link: function (scope, element, attrs, controller) {
995
995
  console.log('nav.link()');
@@ -1006,6 +1006,9 @@ var angularportalazure;
1006
1006
  }
1007
1007
  });
1008
1008
  },
1009
+ controller: function () {
1010
+ console.log('nav.controller()');
1011
+ },
1009
1012
  controllerAs: 'vm'
1010
1013
  };
1011
1014
  }
@@ -1015,9 +1018,12 @@ var angularportalazure;
1015
1018
  (function (angularportalazure) {
1016
1019
  function navGrid($window) {
1017
1020
  return {
1018
- scope: { vm: '=viewModel' },
1021
+ restrict: 'E',
1022
+ scope: {},
1023
+ bindToController: { vm: '=viewModel' },
1019
1024
  templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/navgrid/navgrid.html',
1020
1025
  link: function (scope, element, attrs, controller) {
1026
+ console.log('navGrid.link()');
1021
1027
  angular.forEach(scope.vm.items, function (item) {
1022
1028
  // Set some default values, depending on existing values
1023
1029
  if (item.isVisible == undefined) {
@@ -1030,7 +1036,11 @@ var angularportalazure;
1030
1036
  item.style = { cursor: 'default' };
1031
1037
  }
1032
1038
  });
1033
- }
1039
+ },
1040
+ controller: function () {
1041
+ console.log('navGrid.controller()');
1042
+ },
1043
+ controllerAs: 'vm'
1034
1044
  };
1035
1045
  }
1036
1046
  angular.module('angularportalazure').directive('navGrid', ['$window', navGrid]);
@@ -7,12 +7,11 @@ namespace angularportalazure {
7
7
  return {
8
8
  restrict: 'E',
9
9
  transclude: true,
10
- scope: {}, //scope: { vm: '=vm' },
11
- bindToController: { vm: '=' },
10
+ scope: {},
11
+ bindToController: { vm: '=vm' },
12
12
  templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
13
13
  link: function (scope, element, attrs, controller) {
14
14
  console.log('azurePortalBlade.link()');
15
-
16
15
  //#region the following code makes sure, that a function scope.vm.close is available
17
16
 
18
17
  if (scope.vm === undefined) { scope.vm = {}; }
@@ -26,6 +25,7 @@ namespace angularportalazure {
26
25
  //#endregion
27
26
  },
28
27
  controller: function () {
28
+ console.log('azurePortalBlade.controller()');
29
29
  this.blade = this.vm.blade;
30
30
  this.contentTitle = this.vm.contentTitle;
31
31
  this.contentSubTitle = this.vm.contentSubTitle;
@@ -2,9 +2,8 @@
2
2
  function nav($window) {
3
3
  return {
4
4
  restrict: 'E',
5
- //scope: { vm: '=viewModel' },
6
- scope: {}, //scope: { vm: '=viewModel' },
7
- bindToController: { vm: '=' },
5
+ scope: {},
6
+ bindToController: { vm: '=viewModel' },
8
7
  templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
9
8
  link: function (scope, element, attrs, controller) {
10
9
  console.log('nav.link()');
@@ -15,6 +14,9 @@
15
14
  if (item.bladePath == undefined || item.bladePath == '') { item.style = { cursor: 'default' }; }
16
15
  });
17
16
  },
17
+ controller: function () {
18
+ console.log('nav.controller()');
19
+ },
18
20
  controllerAs: 'vm'
19
21
  };
20
22
  }
@@ -1,16 +1,23 @@
1
1
  namespace angularportalazure {
2
2
  function navGrid($window) {
3
3
  return {
4
- scope: { vm: '=viewModel' },
4
+ restrict: 'E',
5
+ scope: {},
6
+ bindToController: { vm: '=viewModel' },
5
7
  templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/navgrid/navgrid.html',
6
8
  link: function (scope, element, attrs, controller) {
9
+ console.log('navGrid.link()');
7
10
  angular.forEach(scope.vm.items, function (item) {
8
11
  // Set some default values, depending on existing values
9
12
  if (item.isVisible == undefined) { item.isVisible = true; }
10
13
  if (item.title == undefined || item.title == '') { item.style = { cursor: 'default' }; }
11
14
  if (item.bladePath == undefined || item.bladePath == '') { item.style = { cursor: 'default' }; }
12
15
  });
13
- }
16
+ },
17
+ controller: function () {
18
+ console.log('navGrid.controller()');
19
+ },
20
+ controllerAs: 'vm'
14
21
  };
15
22
  }
16
23
 
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.12",
5
+ "version": "0.2.13",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {