[AngularJS] Register many directives

2016-06-22 Thread Sebastian Stehle
Hi, I have implemented some directives and components that are very important to many parts of my application, e.g. a shortcut component. In previous version of angular2 I was able to define a array of directives const GP_DIRECTIVES: any[] = [ ShortcutComponent, ]; and then use them in a

[AngularJS] OnActivate in Directive

2015-12-22 Thread Sebastian Stehle
Hi, I want to realize page transitions in an angular2 application. I tried several approaches: 1. My first approach was to implement the OnActivate interface and then add some classes to my component root object. This works fine, but has some problems: First, it is the same code for any compo