I can’t understand why this doesn’t work. The error is
Error: Argument 'TodoCtrl' is not a function, got undefined
I guess the issue is simple, but I can’t solve it. In general, I want to change the text periodically.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To get your fiddle working I changed the following:
Here is a sample fiddle based on your original fiddle note the following changes based around bypassing jQuery for DOM/model updates:
setIntervalandclearIntervalsince modifying the model outside of AngularJS shouldn’t be done if easily avoided. If you want to do so be sure and look at $apply.