mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
renderer.setElementClass for icon class
This commit is contained in:
@@ -95,7 +95,9 @@ export class IonicApp {
|
||||
let loader = this.injector.get(DynamicComponentLoader);
|
||||
let rootComponentRef = this.ref()._hostComponent;
|
||||
|
||||
return loader.loadNextToLocation(component, rootComponentRef.location, this.bindings)
|
||||
let bindings = this.injector._proto._strategy.bindings;
|
||||
|
||||
return loader.loadNextToLocation(component, rootComponentRef.location)
|
||||
.catch(err => {
|
||||
console.error('appendComponent:', err);
|
||||
});
|
||||
@@ -149,18 +151,6 @@ function initApp(window, document, config) {
|
||||
return app;
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'test-comp'
|
||||
})
|
||||
@View({
|
||||
template: 'test-comp text'
|
||||
})
|
||||
class TestComp {
|
||||
constructor(config: IonicConfig) {
|
||||
console.log('TestComp constructor')
|
||||
}
|
||||
}
|
||||
|
||||
export function ionicBootstrap(component, config, router) {
|
||||
return new Promise(resolve => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user