Skip to content

Commit

Permalink
[template/angular-xmcloud] Introduce angular SXA PartialDesignDynamic…
Browse files Browse the repository at this point in the history
…Placeholder component (#1902)

* add partialDesignDynamicPlaceholder

* update changelog

---------

Co-authored-by: Addy Pathania <[email protected]>
  • Loading branch information
addy-pathania and apathania22 authored Aug 22, 2024
1 parent 7c31699 commit e90ab91
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Our versioning strategy is as follows:
* Row-Splitter ([#1901](https://github.com/Sitecore/jss/pull/1901))
* Link-List ([#1898](https://github.com/Sitecore/jss/pull/1898))
* Column-Splitter ([#1889](https://github.com/Sitecore/jss/pull/1889))
* PartialDesignDynamicPlaceholder ([#1902](https://github.com/Sitecore/jss/pull/1902))
* Promo component ([#1897](https://github.com/Sitecore/jss/pull/1897))

### 🛠 Breaking Change
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<sc-placeholder [name]="sig" [rendering]="rendering">
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 || '';
}
}

0 comments on commit e90ab91

Please sign in to comment.