@ardimedia/angular-portal-azure 0.2.11 → 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,21 +901,24 @@ 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
- //link: function (scope, element, attrs, controller) {
907
- // angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.link\' called.', [this, portalService]);
908
- // //#region the following code makes sure, that a function scope.vm.close is available
909
- // if (scope.vm === undefined) { scope.vm = {}; }
910
- // if (scope.vm.close === undefined) {
911
- // scope.vm.close = function () {
912
- // angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
913
- // portalService.bladeArea.clearLastLevel();
914
- // }
915
- // }
916
- // //#endregion
917
- //},
906
+ link: function (scope, element, attrs, controller) {
907
+ console.log('azurePortalBlade.link()');
908
+ //#region the following code makes sure, that a function scope.vm.close is available
909
+ if (scope.vm === undefined) {
910
+ scope.vm = {};
911
+ }
912
+ if (scope.vm.close === undefined) {
913
+ scope.vm.close = function () {
914
+ angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
915
+ portalService.bladeArea.clearLastLevel();
916
+ };
917
+ }
918
+ //#endregion
919
+ },
918
920
  controller: function () {
921
+ console.log('azurePortalBlade.controller()');
919
922
  this.blade = this.vm.blade;
920
923
  this.contentTitle = this.vm.contentTitle;
921
924
  this.contentSubTitle = this.vm.contentSubTitle;
@@ -984,9 +987,12 @@ var angularportalazure;
984
987
  (function (angularportalazure) {
985
988
  function nav($window) {
986
989
  return {
987
- scope: { vm: '=viewModel' },
990
+ restrict: 'E',
991
+ scope: {},
992
+ bindToController: { vm: '=viewModel' },
988
993
  templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/nav/nav.html',
989
994
  link: function (scope, element, attrs, controller) {
995
+ console.log('nav.link()');
990
996
  angular.forEach(scope.vm.navItems, function (item) {
991
997
  // Set some default values, depending on existing values
992
998
  if (item.isVisible == undefined) {
@@ -999,7 +1005,11 @@ var angularportalazure;
999
1005
  item.style = { cursor: 'default' };
1000
1006
  }
1001
1007
  });
1002
- }
1008
+ },
1009
+ controller: function () {
1010
+ console.log('nav.controller()');
1011
+ },
1012
+ controllerAs: 'vm'
1003
1013
  };
1004
1014
  }
1005
1015
  angular.module('angularportalazure').directive('nav', ['$window', nav]);
@@ -1008,9 +1018,12 @@ var angularportalazure;
1008
1018
  (function (angularportalazure) {
1009
1019
  function navGrid($window) {
1010
1020
  return {
1011
- scope: { vm: '=viewModel' },
1021
+ restrict: 'E',
1022
+ scope: {},
1023
+ bindToController: { vm: '=viewModel' },
1012
1024
  templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/navgrid/navgrid.html',
1013
1025
  link: function (scope, element, attrs, controller) {
1026
+ console.log('navGrid.link()');
1014
1027
  angular.forEach(scope.vm.items, function (item) {
1015
1028
  // Set some default values, depending on existing values
1016
1029
  if (item.isVisible == undefined) {
@@ -1023,7 +1036,11 @@ var angularportalazure;
1023
1036
  item.style = { cursor: 'default' };
1024
1037
  }
1025
1038
  });
1026
- }
1039
+ },
1040
+ controller: function () {
1041
+ console.log('navGrid.controller()');
1042
+ },
1043
+ controllerAs: 'vm'
1027
1044
  };
1028
1045
  }
1029
1046
  angular.module('angularportalazure').directive('navGrid', ['$window', navGrid]);
@@ -7,25 +7,25 @@ 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
- //link: function (scope, element, attrs, controller) {
14
- // angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.link\' called.', [this, portalService]);
13
+ link: function (scope, element, attrs, controller) {
14
+ console.log('azurePortalBlade.link()');
15
+ //#region the following code makes sure, that a function scope.vm.close is available
15
16
 
16
- // //#region the following code makes sure, that a function scope.vm.close is available
17
+ if (scope.vm === undefined) { scope.vm = {}; }
18
+ if (scope.vm.close === undefined) {
19
+ scope.vm.close = function () {
20
+ angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
21
+ portalService.bladeArea.clearLastLevel();
22
+ }
23
+ }
17
24
 
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
- //},
25
+ //#endregion
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;
@@ -1,16 +1,23 @@
1
1
  namespace angularportalazure {
2
2
  function nav($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/nav/nav.html',
6
8
  link: function (scope, element, attrs, controller) {
9
+ console.log('nav.link()');
7
10
  angular.forEach(scope.vm.navItems, 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('nav.controller()');
19
+ },
20
+ controllerAs: 'vm'
14
21
  };
15
22
  }
16
23
 
@@ -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.11",
5
+ "version": "0.2.13",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {