Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix(ngInit): evaluate ngInit before ngInclude #5208

Closed
wants to merge 1 commit into from

Conversation

caitp
Copy link
Contributor

@caitp caitp commented Nov 30, 2013

The priority of ngInit is adjusted to occur before ngInclude, and after ngController. This enables ngInit to initiallize values in a controller's scope, and also to initiallize values before ngInclude executes.

Closes #5167

@mary-poppins
Copy link

Thanks for the PR!

  • Contributor signed CLA now or in the past
    • If you just signed, leave a comment here with your real name
  • PR's commit messages follow the commit message format

If you need to make changes to your pull request, you can update the commit with git commit --amend.
Then, update the pull request with git push -f.

Thanks again for your help!

The priority of ngInit is adjusted to occur before ngInclude, and after
ngController. This enables ngInit to initiallize values in a controller's
scope, and also to initiallize values before ngInclude executes.
@ghost ghost assigned IgorMinar Dec 2, 2013
@IgorMinar
Copy link
Contributor

lgtm

@IgorMinar
Copy link
Contributor

thanks for nice tests

@IgorMinar IgorMinar closed this in 0e50810 Dec 5, 2013
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this pull request Jan 27, 2014
The priority of ngInit is adjusted to occur before ngInclude, and after
ngController. This enables ngInit to initiallize values in a controller's
scope, and also to initiallize values before ngInclude executes.

Closes angular#5167
Closes angular#5208
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this pull request Jan 27, 2014
The priority of ngInit is adjusted to occur before ngInclude, and after
ngController. This enables ngInit to initiallize values in a controller's
scope, and also to initiallize values before ngInclude executes.

Closes angular#5167
Closes angular#5208
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ng-init directive priority
3 participants