I don’t know enough to be sure if this is an ionic bug or not but when I try to add an Input to the Directive/Component below it breaks. In the example below I am trying to add mytitle="test" as input to the <advanced-card></advanced-card> directive
@tim you’re the man
After converting my files to Typescript everything works as expected. Here’s the updated version for anybody else having this issue:
advanced-card.ts
import {Component, Input} from 'angular2/core';
import {IONIC_DIRECTIVES} from 'ionic-angular';
@Component({
selector: 'advanced-card',
templateUrl: 'build/pages/advanced-card/advanced-card.html',
directives: [IONIC_DIRECTIVES]
})
export class AdvancedCard {
@Input() mytitle: string;
constructor() {
}
}
Is possible pass object into directive? <advanced-card data="{{object}}"></advanced-card> @Input() data: any;
with this i am getting [Object object] type string in data.