p3x-angular-compile 2026.4.109 → 2026.4.117

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/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
 
8
8
 
9
- # 🆖 Angular Dynamic Compile - Convert strings to Angular components v2026.4.109
9
+ # 🆖 Angular Dynamic Compile - Convert strings to Angular components v2026.4.117
10
10
 
11
11
 
12
12
 
@@ -22,7 +22,7 @@
22
22
  ### 🛠️ Built on NodeJs version
23
23
 
24
24
  ```txt
25
- v24.14.1
25
+ v24.16.0
26
26
  ```
27
27
 
28
28
 
@@ -31,7 +31,7 @@ v24.14.1
31
31
  # 📦 Built on Angular
32
32
 
33
33
  ```text
34
- 21.2.10
34
+ 22.0.0
35
35
  ```
36
36
 
37
37
 
@@ -376,7 +376,7 @@ All my domains, including [patrikx3.com](https://patrikx3.com), [corifeus.eu](ht
376
376
  **🚨 Important Changes:** Any breaking changes are prominently noted in the readme to keep you informed.
377
377
 
378
378
 
379
- [**P3X-ANGULAR-COMPILE**](https://corifeus.com/angular-compile) Build v2026.4.109
379
+ [**P3X-ANGULAR-COMPILE**](https://corifeus.com/angular-compile) Build v2026.4.117
380
380
 
381
381
  [![NPM](https://img.shields.io/npm/v/p3x-angular-compile.svg)](https://www.npmjs.com/package/p3x-angular-compile) [![Donate for PatrikX3 / P3X](https://img.shields.io/badge/Donate-PatrikX3-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
382
382
 
@@ -1,15 +1,13 @@
1
1
  import {
2
- Compiler,
3
- Component,
4
- inject,
5
- Injectable,
6
- Input,
7
- ModuleWithProviders,
8
- NgModule,
9
- NgModuleFactory,
10
- OnChanges,
11
- SimpleChanges,
12
- Type,
2
+ Component,
3
+ Injectable,
4
+ Input,
5
+ ModuleWithProviders,
6
+ NgModule,
7
+ OnChanges,
8
+ SimpleChanges,
9
+ Type,
10
+ ChangeDetectionStrategy
13
11
  } from '@angular/core';
14
12
  import { CommonModule, NgComponentOutlet } from '@angular/common';
15
13
 
@@ -44,10 +42,11 @@ function nextId(): string {
44
42
  selector: '[p3x-compile]',
45
43
  template: `
46
44
  @if (renderComponent) {
47
- <ng-container *ngComponentOutlet="dynamicComponent; ngModuleFactory: dynamicModule;"></ng-container>
45
+ <ng-container *ngComponentOutlet="dynamicComponent; ngModule: dynamicModule;"></ng-container>
48
46
  }
49
47
  `,
50
48
  standalone: true,
49
+ changeDetection: ChangeDetectionStrategy.Eager,
51
50
  imports: [CommonModule, NgComponentOutlet],
52
51
  })
53
52
  @Injectable()
@@ -63,7 +62,7 @@ export class CompileAttribute implements OnChanges {
63
62
  errorHandler: Function | undefined = undefined;
64
63
 
65
64
  dynamicComponent: any;
66
- dynamicModule: NgModuleFactory<any> | any;
65
+ dynamicModule: Type<any> | undefined;
67
66
 
68
67
  @Input('p3x-compile-module')
69
68
  module: NgModule | undefined;
@@ -71,8 +70,6 @@ export class CompileAttribute implements OnChanges {
71
70
  @Input('p3x-compile-imports')
72
71
  imports: Array<Type<any> | ModuleWithProviders<any> | any[]> | undefined;
73
72
 
74
- private readonly compiler = inject(Compiler);
75
-
76
73
  get renderComponent() {
77
74
  return typeof this.html === 'string' && this.html.trim() !== '';
78
75
  }
@@ -90,9 +87,7 @@ export class CompileAttribute implements OnChanges {
90
87
  }
91
88
 
92
89
  this.dynamicComponent = this.createNewComponent(this.html, this.context);
93
- this.dynamicModule = this.compiler.compileModuleSync(
94
- this.createComponentModule(this.dynamicComponent),
95
- );
90
+ this.dynamicModule = this.createComponentModule(this.dynamicComponent);
96
91
  } catch (e) {
97
92
  if (this.errorHandler === undefined) {
98
93
  throw e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "p3x-angular-compile",
3
- "version": "2026.4.109",
3
+ "version": "2026.4.117",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/core": "^13.0.0"
@@ -10,7 +10,7 @@
10
10
  "publish": true
11
11
  },
12
12
  "devDependencies": {
13
- "corifeus-builder": "^2026.4.151"
13
+ "corifeus-builder": "^2026.4.161"
14
14
  },
15
15
  "dependencies": {
16
16
  "tslib": "^2.0.0"