mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
feat(prop): load controllers w/ prop connect and context
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { Component, Element } from '@stencil/core';
|
||||
import { Component, Element, Prop } from '@stencil/core';
|
||||
import { getParentElement, getToolbarHeight } from '../../utils/helpers';
|
||||
import { Ionic } from '../../index';
|
||||
import { Config } from '../../index';
|
||||
|
||||
|
||||
@Component({
|
||||
@ -15,6 +15,7 @@ import { Ionic } from '../../index';
|
||||
})
|
||||
export class Fixed {
|
||||
@Element() private el: HTMLElement;
|
||||
@Prop({ context: 'config' }) config: Config;
|
||||
mode: string;
|
||||
|
||||
hostData() {
|
||||
@ -24,7 +25,7 @@ export class Fixed {
|
||||
|
||||
return {
|
||||
class: {
|
||||
'statusbar-padding': Ionic.config.getBoolean('statusbarPadding')
|
||||
'statusbar-padding': this.config.getBoolean('statusbarPadding')
|
||||
},
|
||||
style: {
|
||||
'margin-top': headerHeight,
|
||||
|
||||
Reference in New Issue
Block a user