Closed gaurav1264 closed 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.
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.