@angular-wave/angular.ts 0.1.0 → 0.1.1

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@angular-wave/angular.ts",
3
3
  "description": "A modern, optimized and typesafe version of AngularJS",
4
4
  "license": "MIT",
5
- "version": "0.1.0",
5
+ "version": "0.1.1",
6
6
  "type": "module",
7
7
  "main": "dist/angular-ts.esm.js",
8
8
  "browser": "dist/angular-ts.umd.js",
@@ -391,7 +391,7 @@ export function $AnimateCssProvider() {
391
391
  }
392
392
 
393
393
  if (!options.$$skipPreparationClasses) {
394
- element[0].classList.add(preparationClasses);
394
+ element[0].classList.add(preparationClasses.split(" ").filter(x => x !== ""));
395
395
  }
396
396
 
397
397
  let applyOnlyDuration;
@@ -785,7 +785,7 @@ export function $AnimateCssProvider() {
785
785
 
786
786
  applyAnimationClasses(element, options);
787
787
 
788
- element[0].classList.add(activeClasses);
788
+ element[0].classList.add(activeClasses.split(" ").filter(x => x !== ""));
789
789
  if (flags.recalculateTimingStyles) {
790
790
  cacheKey = $$animateCache.cacheKey(
791
791
  node,
@@ -816,10 +816,6 @@ export class NgModelController {
816
816
  }
817
817
 
818
818
  /**
819
- * @ngdoc method
820
- * @name ngModel.NgModelController#$setViewValue
821
- *
822
- * @description
823
819
  * Update the view value.
824
820
  *
825
821
  * This method should be called when a control wants to change the view value; typically,
@@ -906,11 +902,6 @@ export class NgModelController {
906
902
  }
907
903
 
908
904
  /**
909
- * @ngdoc method
910
- *
911
- * @name ngModel.NgModelController#$overrideModelOptions
912
- *
913
- * @description
914
905
  *
915
906
  * Override the current model options settings programmatically.
916
907
  *
@@ -940,12 +931,6 @@ export class NgModelController {
940
931
  }
941
932
 
942
933
  /**
943
- * @ngdoc method
944
- *
945
- * @name ngModel.NgModelController#$processModelValue
946
-
947
- * @description
948
- *
949
934
  * Runs the model -> view pipeline on the current
950
935
  * {@link ngModel.NgModelController#$modelValue $modelValue}.
951
936
  *
@@ -1132,6 +1117,7 @@ function setupModelWatcher(ctrl) {
1132
1117
  });
1133
1118
  }
1134
1119
 
1120
+ ngModelDirective.$inject = ["$rootScope"];
1135
1121
  export function ngModelDirective($rootScope) {
1136
1122
  return {
1137
1123
  restrict: "A",
@@ -1146,7 +1132,7 @@ export function ngModelDirective($rootScope) {
1146
1132
  element[0].classList.add(PRISTINE_CLASS, UNTOUCHED_CLASS, VALID_CLASS);
1147
1133
 
1148
1134
  return {
1149
- pre: function (scope, element, attr, ctrls) {
1135
+ pre: function (scope, _element, attr, ctrls) {
1150
1136
  const modelCtrl = ctrls[0];
1151
1137
  const formCtrl = ctrls[1] || modelCtrl.$$parentForm;
1152
1138
  const optionsCtrl = ctrls[2];
@@ -1170,7 +1156,7 @@ export function ngModelDirective($rootScope) {
1170
1156
  modelCtrl.$$parentForm.$removeControl(modelCtrl);
1171
1157
  });
1172
1158
  },
1173
- post: function ngModelPostLink(scope, element, attr, ctrls) {
1159
+ post: function (scope, element, _attr, ctrls) {
1174
1160
  const modelCtrl = ctrls[0];
1175
1161
  modelCtrl.$$setUpdateOnEvents();
1176
1162