pbastowski / angular2-now

Angular 2 @Component syntax for Angular 1 apps
MIT License
145 stars 15 forks source link

@State templateUrl properties doesn't work any more #49

Closed hlehmann closed 8 years ago

hlehmann commented 8 years ago

Since the refactor, it's not possible to define a templateUrl in the State annotation.

I pointed the change: https://github.com/pbastowski/angular2-now/commit/9982e46071cf8b28b66f49c0581bffd5ddb5ec53#diff-3e972fd2dbab9f5b4c0af1f0c2447076R127

@State({
  name: "foo",
  url: "/foo",
  controllerAs: "foo",
  templateUrl: "foo.html",
})

after update I get <div ui-view>foo.html<div> instead of the content of foo.html

kamilkisiela commented 8 years ago

We must wait for @pbastowski now, he has The Force to publish a new version :)

hlehmann commented 8 years ago

thx, I didn't notice those conditions.