I\'m trying to get an app working with angular 1.5.0-beta.2
To make a \'directive\' I have the following code:
myApp.component(\'gridshow\', {
bind
In 1.5.0-beta.2 templateUrl can be a function that is invoked by injector. $element and $attrs are injected into both template and templateUrl functions in component, as well as any other dependencies.
This means that
...
templateUrl: function ($element, $attrs) {
// access to $element and $attrs
...
return $attrs.uninterpolatedTemplateUrl;
}
can be done instead.