first, I have read millions of post saying you should not update DOM elements from a Controller in Angular. I know.
When trying to use angular-timer directive (a countdown). I faced some problems, so finally, with the plugin developer help, we did this plunker, which is working and meet my requirements.
http://plnkr.co/edit/CWXnKMbygVDMc8xzshZa?p=preview
However, when moving this code to my app, I got next error when I add the $element to my controller:
`Error: Unknown provider: $elementProvider <- $element`
I have read many posts and I know it can be injected, but I don´t know why it´s not working in my app.
In the other hand, I like to do things right, so I don´t like to implement something that is a bad practice. So, if you have a better approach that works, please let me know.
var app = angular.module('lazy-timer', ['timer']).and add theangular-timer.min.jsto your index.html?$elementis not found at the moment.