vitalets / angular-xeditable

Edit in place for AngularJS
http://vitalets.github.io/angular-xeditable
MIT License
1.91k stars 403 forks source link

Update example in document to use the strict angular DI #695

Closed gaurav1264 closed 7 years ago

gaurav1264 commented 7 years ago

I referred the http://vitalets.github.io/angular-xeditable/#bootstrap3 to change the theme, where i have used example given in the docs.

But as per angular, we must use function which takes array-fied type of paramaters in it. Refer: https://docs.angularjs.org/error/$injector/unpr?p0=aProvider%20%3C-%20a

And https://stackoverflow.com/questions/21688681/unknown-provider-aprovider-a-how-do-i-find-the-original-provider

The example should be: app.run(['editableOptions', function(editableOptions) {   editableOptions.theme = 'bs3'; }]);

instead app.run(function(editableOptions) { editableOptions.theme = 'bs3'; });

array-fied function works without any issue.