mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(): remove use of @View
This commit is contained in:
@@ -29,8 +29,9 @@ class PageImpl extends View {
|
||||
*
|
||||
* ```ts
|
||||
* @Page({
|
||||
* template: '<ion-checkbox my-custom-dir>' +
|
||||
* '</ion-checkbox>'
|
||||
* template: `
|
||||
* <ion-checkbox my-custom-dir>
|
||||
* </ion-checkbox>`
|
||||
* directives: [MyCustomDirective]
|
||||
* })
|
||||
* class MyPage {}
|
||||
@@ -45,11 +46,10 @@ class PageImpl extends View {
|
||||
* ```ts
|
||||
* import {IONIC_DIRECTIVES} from 'ionic/ionic';
|
||||
* @Component({
|
||||
* template: `<div class="customStyle">
|
||||
* selector: 'my-component'
|
||||
* template: `<div class="my-style">
|
||||
* <ion-checkbox></ion-checkbox>
|
||||
* </div>`
|
||||
* })
|
||||
* @View({
|
||||
* </div>`,
|
||||
* directives: [IONIC_DIRECTIVES]
|
||||
* })
|
||||
* class MyCustomCheckbox {}
|
||||
@@ -60,7 +60,8 @@ class PageImpl extends View {
|
||||
* ```
|
||||
* along with any other components and add them individually:
|
||||
* ```
|
||||
* @View({
|
||||
* @Component({
|
||||
* ...
|
||||
* directives: [Checkbox, Icon]
|
||||
* })
|
||||
* ```
|
||||
|
||||
Reference in New Issue
Block a user