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

fix(compiler): revert 8611ebe6 - calling after linking #614

Closed
wants to merge 1 commit into from

Conversation

IgorMinar
Copy link
Contributor

Change introduced by me in 8611ebe results in considerable inefficiencies when the compiler
and linker is used from within a widget, in which case, we call $digest unnecessary since it
will be called by the $apply which called the directive/widget in the first place.

There are only two places when the extra $digest call can be useful - when manually bootstrapping
the app or in tests. However even in tests this behavior can result in unwanted results (especially
when ng:controller is involved). So it is better to leave it for the developer to call $digest
when it is really needed.

Change introduced by me in 8611ebe results in considerable inefficiencies when the compiler
and linker is used from within a widget, in which case, we call $digest unnecessary since it
will be called by the $apply which called the directive/widget in the first place.

There are only two places when the extra $digest call can be useful - when manually bootstrapping
the app or in tests. However even in tests this behavior can result in unwanted results (especially
when ng:controller is involved). So it is better to leave it for the developer to call $digest
when it is really needed.
@IgorMinar
Copy link
Contributor Author

[angular.js] IgorMinar force-pushed master from 77bf5e0 to f38010d: http://git.io/eb2NaA

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.

2 participants