I tried using the ionViewLoaded function to set a class on page load but it’s not firing. So I tried just logging a message. It still doesn’t work. What am I doing wrong?
import {IONIC_DIRECTIVES, NavController, ViewController} from 'ionic-angular';
@Component({
selector: 'my-component',
directives: [IONIC_DIRECTIVES],
template: '<button class="{{dynamic-class}}">Hello</button>'
})
export class myComponentClass {
public constructor() {}
ionViewLoaded() {
console.log("who lives in a pineapple?");
}
}