How to make a directive or equivalent?

Nope, @Page comes with the IONIC_DIRECTIVES by default, if you’re using the @Component you need to include them in the directives array:

import {Component} from 'angular2/core';
import {IONIC_DIRECTIVES} from 'ionic/ionic';
@Component({
  selector: 'advanced-card',
  templateUrl: 'build/pages/advanced-card/advanced-card.html'
  directives: [IONIC_DIRECTIVES]
})
.....

When creating one use the generators, they had this already done, that’s why i know about it.

2 Likes