-
Notifications
You must be signed in to change notification settings - Fork 51
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
function AlbumListController doesnt work in 1.4 #1
Comments
@bhajanpreets |
Hi! Yes, they changed Angular. You need to do the following now:
You now have to declare which things you want injected when you add it to the module. Unfortunate change, but … survivable. HTH! |
I'll update the code for all the various samples. Thanks for pointing that out! |
i appreciate your concern. keep on the great work your doing On Fri, Feb 26, 2016 at 3:32 PM, Marc Wandschneider <
|
I faced the same issue. I think it's also worth mentioning that in index.html you need to include the app's name in the html tag: |
I have another issue. In lesson 5 you are creating the albumservice.js. When I follow this example (have created my own example provider for customers) with this code: `(function () {
})()` I get the error message:
I guess my customerProvider also needs to be defined differently because of the Angular change?? But how? |
Hey Eugene, Yah, I think it's the same problem; injection works differently now, so your last line should be:
Give that a try. You can look in the MEAN workshop samples there for how I declare services and template off those too. |
I was practicing the live lessons and found that I was unable to run 01_controller.html with Angular 1.4.8.
I had to replace the way function is defined. (I checked https://docs.angularjs.org/tutorial/step_02)
Replaced,
by
Just adding a comment here hoping that it would help someone who encounters the same issue
The text was updated successfully, but these errors were encountered: