Title: new angular development features and improvements with error handling webinar by google employees
About Angular: Angular is a Typescript-based open-source front-end web application platform led by the Angular Team at Google and by a community of individuals and corporations. What we’ll cover in this webinar... Any error you can fix after this webinar 1. Angular error handling with latest strategies 2. New tips to write clean and per-formant angular application 3. Improving the testability of the angular app 4. Add caching to APIs and Migrating to PWA 5. State Management in Angular 6. User Activity logging with Azure Application Insights 7. Integrate with any technology Speaker: Ryan Russul who is a speaker and having 8 years of experience in UI development and worked as senior solution architect, practising code re-usability and enterprise practices in angular development among all teams who were responsible for angular development. Join in webinar: http://ovpurl.com/c2V5oNgM [image: angular-webinar-31st.jpg] On Saturday, October 20, 2018 at 11:08:04 PM UTC+5:30, mtsto...@gmail.com wrote: > > I am using angularjs 1. When I invoke the "updateProfile" below, it would > display a modal dialog: > > $scope.updateProfile = function(){ > modalService.showModal({}, modalOptions).then(function (result) { //my > code }); } > > angular.module('myApp') .service('modalService', ['$uibModal', function > ($uibModal) { var modalDefaults = { backdrop: true, keyboard: true, > modalFade: > true, templateUrl:'../assets/templates/main/modal.php' }; var > modalOptions = { closeButtonText: 'Close', actionButtonText: 'OK', > headerText: > 'Proceed?', bodyText: 'Perform this action?' }; this.showModal = function > (customModalDefaults, customModalOptions) { if (!customModalDefaults) > customModalDefaults = {}; customModalDefaults.backdrop = 'static'; return > this.show(customModalDefaults, customModalOptions); }; this.show = > function (customModalDefaults, customModalOptions) { //Create temp > objects to work with since we're in a singleton service var > tempModalDefaults = {}; var tempModalOptions = {}; //Map angular-ui modal > custom defaults to modal defaults defined in service > angular.extend(tempModalDefaults, > modalDefaults, customModalDefaults); //Map modal.html $scope custom > properties to defaults defined in service angular.extend(tempModalOptions, > modalOptions, customModalOptions); if (!tempModalDefaults.controller) { > tempModalDefaults.controller > = function ($scope, $uibModalInstance) { $scope.modalOptions = > tempModalOptions; $scope.modalOptions.ok = function (result) { > $uibModalInstance.close(result); }; $scope.modalOptions.close = function > (result) { $uibModalInstance.dismiss('cancel'); }; } } return > $uibModal.open(tempModalDefaults).result; }; }]); > > However after I uglify the code an error is raised. > > [$injector:unpr] > http://errors.angularjs.org/1.6.3/$injector/unpr?p0=oProvider%20%3C-%20o > > > Your help is kindly appreciated. > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.