refactor(menu): deprecate main html attribute (#19237)

This commit is contained in:
Manu MA
2019-10-02 23:13:27 +02:00
committed by Brandy Carney
parent f4818a1f3a
commit 9688f4d42f
2 changed files with 29 additions and 0 deletions

View File

@ -69,6 +69,24 @@ export class SplitPane implements ComponentInterface {
}
}
componentWillLoad() {
if (this.contentId === undefined) {
console.warn(`[DEPRECATED][ion-split-pane] Using the [main] attribute is deprecated, please use the "contentId" property instead:
BEFORE:
<ion-split-pane>
...
<div main>...</div>
</ion-split-pane>
AFTER:
<ion-split-pane contentId="main-content">
...
<div id="main-content">...</div>
</ion-split-pane>
`);
}
}
@Watch('disabled')
@Watch('when')
protected updateState() {