Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (14 sloc) 332 Bytes
import {ngBase} from './ngBase';
export class ngDirective extends ngBase {
register(app, fn) {
var options = {};
for (var prop in this.options)
{
options[prop] = this.options[prop];
}
app.directive(this.name, ($injector) => {
options.link = $injector.invoke(this.wrap(fn));
return options;
});
}
}