@wavemaker/app-ng-runtime 11.4.1-next.141647 → 11.4.1-next.141649

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.
@@ -1701,15 +1701,15 @@ class BaseSpaPageComponent extends FragmentMonitor {
1701
1701
  }
1702
1702
  init() {
1703
1703
  muteWatchers();
1704
- this.App = this.injector.get(App);
1705
- this.route = this.injector.get(ActivatedRoute);
1706
- this.appManager = this.injector.get(AppManagerService);
1707
- this.navigationService = this.injector.get(AbstractNavigationService);
1708
- this.scriptLoaderService = this.injector.get(ScriptLoaderService);
1709
- this.i18nService = this.injector.get(AbstractI18nService);
1710
- this.router = this.injector.get(Router);
1711
- this.Viewport = this.injector.get(Viewport);
1712
- this.layoutDirective = this.injector.get(LayoutDirective);
1704
+ this.App = inject(App);
1705
+ this.route = inject(ActivatedRoute);
1706
+ this.appManager = inject(AppManagerService);
1707
+ this.navigationService = inject(AbstractNavigationService);
1708
+ this.scriptLoaderService = inject(ScriptLoaderService);
1709
+ this.i18nService = inject(AbstractI18nService);
1710
+ this.router = inject(Router);
1711
+ this.Viewport = inject(Viewport);
1712
+ this.layoutDirective = inject(LayoutDirective);
1713
1713
  // register functions for binding evaluation
1714
1714
  this.registerExpressions();
1715
1715
  this.initUserScript();
@@ -1731,7 +1731,7 @@ class BaseSpaPageComponent extends FragmentMonitor {
1731
1731
  }
1732
1732
  initUserScript() {
1733
1733
  try {
1734
- this.evalUserScript(this, this.App, this.injector.get(UtilsService));
1734
+ this.evalUserScript(this, this.App, inject(UtilsService));
1735
1735
  }
1736
1736
  catch (e) {
1737
1737
  console.error(`Error in evaluating page (${this.pageName}) script\n`, e);
@@ -1748,7 +1748,7 @@ class BaseSpaPageComponent extends FragmentMonitor {
1748
1748
  this.appLocale = this.i18nService.getAppLocale();
1749
1749
  }
1750
1750
  initVariables() {
1751
- const variablesService = this.injector.get(VariablesService);
1751
+ const variablesService = inject(VariablesService);
1752
1752
  // get variables and actions instances for the page
1753
1753
  const variableCollection = variablesService.register(this.pageName, this.getVariables(), this);
1754
1754
  // create namespace for Variables nad Actions on page/partial, which inherits the Variables and Actions from App instance