@ardimedia/angular-portal-azure 0.2.8 → 0.2.9

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
@@ -284,6 +284,7 @@ var angularportalazure;
284
284
  get: function () {
285
285
  return this._path;
286
286
  },
287
+ // For the moment we do not distinguish between lower and upper case path name
287
288
  set: function (newPath) {
288
289
  this._path = newPath.toLowerCase();
289
290
  },
@@ -703,6 +704,7 @@ var angularportalazure;
703
704
  get: function () {
704
705
  return this._bladePath;
705
706
  },
707
+ // For the moment we do not distinguish between lower and upper case path name
706
708
  set: function (newBladePath) {
707
709
  this._bladePath = newBladePath.toLowerCase();
708
710
  },
@@ -896,23 +898,29 @@ var angularportalazure;
896
898
  (function (angularportalazure) {
897
899
  function azurePortalBlade($window, portalService) {
898
900
  return {
899
- transclude: true,
900
- scope: { vm: '=vm' },
901
901
  restrict: 'E',
902
+ transclude: true,
903
+ scope: {},
904
+ bindToController: { vm: '=' },
902
905
  templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
903
- link: function (scope, element, attrs, controller) {
904
- angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.link\' called.', [this, portalService]);
905
- //#region the following code makes sure, that a function scope.vm.close is available
906
- if (scope.vm === undefined) {
907
- scope.vm = {};
908
- }
909
- if (scope.vm.close === undefined) {
910
- scope.vm.close = function () {
911
- angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
912
- portalService.bladeArea.clearLastLevel();
913
- };
914
- }
915
- //#endregion
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
+ //},
918
+ controller: function () {
919
+ var _this = this;
920
+ this.vm.close = function () {
921
+ angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [_this, portalService]);
922
+ portalService.bladeArea.clearLastLevel();
923
+ };
916
924
  }
917
925
  };
918
926
  }
@@ -5,24 +5,31 @@
5
5
  namespace angularportalazure {
6
6
  function azurePortalBlade($window: ng.IWindowService, portalService: angularportalazure.PortalService) {
7
7
  return {
8
- transclude: true,
9
- scope: { vm: '=vm' },
10
8
  restrict: 'E',
9
+ transclude: true,
10
+ scope: {}, //scope: { vm: '=vm' },
11
+ bindToController: { vm: '=' },
11
12
  templateUrl: '/node_modules/@ardimedia/angular-portal-azure/directives/blade/blade.html',
12
- link: function (scope, element, attrs, controller) {
13
- angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.link\' called.', [this, portalService]);
13
+ //link: function (scope, element, attrs, controller) {
14
+ // angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.link\' called.', [this, portalService]);
14
15
 
15
- //#region the following code makes sure, that a function scope.vm.close is available
16
+ // //#region the following code makes sure, that a function scope.vm.close is available
16
17
 
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
- }
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
+ // }
24
25
 
25
- //#endregion
26
+ // //#endregion
27
+ //},
28
+ controller: function () {
29
+ this.vm.close = () => {
30
+ angularportalazure.Debug.write('[angularportalazure-debug] \'directive:azurePortalBlade.close\' called.', [this, portalService]);
31
+ portalService.bladeArea.clearLastLevel();
32
+ };
26
33
  }
27
34
  };
28
35
  }
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.8",
5
+ "version": "0.2.9",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {