Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State.apply() generates empty view object #3

Open
jokade opened this issue May 25, 2015 · 1 comment
Open

State.apply() generates empty view object #3

jokade opened this issue May 25, 2015 · 1 comment

Comments

@jokade
Copy link

jokade commented May 25, 2015

State.apply() adds an empty view attribute to the generated state object, when the view was not explicitly specified in State.apply(). E.g.

$stateProvider.state("foo", State(url="foo", template="<p>bar!</p>"))

results in

$stateProvider.state('foo', { url: 'foo', template: '<p>bar!</p>', view: {} });
@jeffmath
Copy link

Changing line 409 of State.scala from

views: Map[String, View] = Map.empty,

to

views: Map[String, View] = null,

fixes this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants