I am using Angularjs but when i try to use the ng-controller function having give it a name of "Appctrl" and using the two way binding of double curly braces it gives me the following error: Use of inputEncoding is deprecated. opt_content.js:1:804247 unreachable code after return statement
2 Answers
This looks like it might not be related to angular, but without a code snippet cannot be 100% sure. Here is a working example with the test case provided by you. Things that could have gone wrong:
- you're missing
ng-app
in your html or attribute's value is not the same as the name of your root angular module - controller is not defined/used properly
Furthermore, I think the error you mentioned actually consists of two separate warnings:
Use of inputEncoding is deprecated
: could be related toExQuilla
browser addon. Can you verify that warning exists cross-browser? If not, can you check if it persists after you disable all plugins for the problematic browser?opt_content.js:1:804247 unreachable code after return statement
. The second part means there is some code in the file, which is placed after areturn
clause and won't be executed. But quick google search points out that theopt_content.js
file might actually be related to some malware.
Appctrl
as a global function rather than an angular controller, which is no longer a valid syntax. see github.com/angular/angular.js/commit/….