UNPKG

ionic-component-directive

Version:

The only way to use Angular 1.5 components in Ionic routes

16 lines (13 loc) 339 B
'use strict' var extend = require('xtend') module.exports = function ionicComponentDirective (options) { return function directive () { return extend({ restrict: 'E', bindToController: options.bindings || options.bindToController, controllerAs: '$ctrl', scope: {}, replace: true }, options) } }