-
Notifications
You must be signed in to change notification settings - Fork 938
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
Templates doesn't work with angular 1.2.0 #29
Comments
Appears to be related to angular/angular.js#3558 |
I've had luck by replacing all "$scope.$seconds", minutes, etc with "$scope.$parent.$seconds", minutes, etc so that they're not in an isolate scope. Of course, "$scope.$digest()" also needs to be replaced with "$scope.$parent.$digest()". |
@olegbl that solution will get you your interpolation, but makes it impossible to use multiple independent timers within the same parent scope (and of course pollutes the parent scope, producing potential collisions with other scope vars named i have a small fix which involves treating dynamic templated content the same way as the default ( |
Made it on v1.0.7 - https://github.com/siddii/angular-timer/tree/master/dist#version-107 |
This example:
{{hours}} hours, {{minutes}} minutes, {{seconds}} seconds.
renders into:
hours, minutes, seconds.
The text was updated successfully, but these errors were encountered: