-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[template/angular-xmcloud] Introduce angular SXA PartialDesignDynamic…
…Placeholder component (#1902) * add partialDesignDynamicPlaceholder * update changelog --------- Co-authored-by: Addy Pathania <[email protected]>
- Loading branch information
1 parent
7c31699
commit e90ab91
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ents/partial-design-dynamic-placeholder/partial-design-dynamic-placeholder.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<sc-placeholder [name]="sig" [rendering]="rendering"> |
15 changes: 15 additions & 0 deletions
15
...onents/partial-design-dynamic-placeholder/partial-design-dynamic-placeholder.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { SxaComponent } from '../sxa.component'; | ||
|
||
@Component({ | ||
selector: 'app-partial-design-dynamic-placeholder', | ||
templateUrl: './partial-design-dynamic-placeholder.component.html', | ||
}) | ||
export class PartialDesignDynamicPlaceholderComponent extends SxaComponent implements OnInit { | ||
sig: string; | ||
ngOnInit() { | ||
super.ngOnInit(); | ||
|
||
this.sig = this.rendering.params?.sig || ''; | ||
} | ||
} |