angular8

Upgrade Angular 4 to Angular 8

我只是一个虾纸丫 提交于 2020-12-12 06:10:49
问题 How can I upgrade my application on Angular 4 to Angular 8? Should I need to make a new angular 8 application and copy paste every components and change accordingly or is there any other suitable method? 回答1: I have been through this few times and every time I end up creating brand new app with new version, then copy paste each component one-by-one. 1) Once you start with this approach, It doesn’t take that long to upgrade. It took me only couple of hours to upgrade. 2) By doing this, you

Upgrade Angular 4 to Angular 8

左心房为你撑大大i 提交于 2020-12-12 06:10:26
问题 How can I upgrade my application on Angular 4 to Angular 8? Should I need to make a new angular 8 application and copy paste every components and change accordingly or is there any other suitable method? 回答1: I have been through this few times and every time I end up creating brand new app with new version, then copy paste each component one-by-one. 1) Once you start with this approach, It doesn’t take that long to upgrade. It took me only couple of hours to upgrade. 2) By doing this, you

Response to preflight request doesn't pass access control check: It does not have HTTP ok status. GET working POST PUT DELETE not working

那年仲夏 提交于 2020-12-06 06:43:23
问题 Greetings I have one web application with following architecture: Web api: ASP.net core 2.1 (Windows Authentication) UI: angular 8 UI is able to get data but unable to send data. I mean GET method is working fine but POST, PUT, DELETE options are not working . And all the methods are working using POSTMAN. ERROR is: Access to XMLHttpRequest at 'http://xx.xxx.xxx.xx:xxyy/xxx/xxxxxx/Method' from origin 'http://localhost:xxxx' has been blocked by CORS policy: Response to preflight request doesn

Angular 8: Object doesn't support property or method 'includes'

时光总嘲笑我的痴心妄想 提交于 2020-12-05 11:42:05
问题 I am building an application in angular8. I worked on angular5/6/7 and for those applications, I uncommented the imports that exist in the polyfills.ts. For angular 8, it has only 3 imports i.e classlist.js, web-animation-js and zone.js/dist/zone. My application is working fine in IE. But I started using the includes function to see if an item exists. It works fine in chrome. In IE it throws Object doesn't support property or method 'includes' error. 回答1: includes is a function that exist on

Is not core-js needed anymore?

时间秒杀一切 提交于 2020-11-24 10:39:45
问题 I've updated an Angular project from version 7 to 8. Everything runs smoothly, schematics did it's job (maybe) and we are Ok (project is even in production). When we're updating Angular CLI, we always generate a new project to see the real differences and learn from them such as new dependencies, configurations, etc. When generating a new Angular project with Angular CLI 8.0.4, the new app doesn't have core-js as dependency: "dependencies": { "@angular/animations": "~8.0.1", "@angular/common"

Is not core-js needed anymore?

本秂侑毒 提交于 2020-11-24 10:31:11
问题 I've updated an Angular project from version 7 to 8. Everything runs smoothly, schematics did it's job (maybe) and we are Ok (project is even in production). When we're updating Angular CLI, we always generate a new project to see the real differences and learn from them such as new dependencies, configurations, etc. When generating a new Angular project with Angular CLI 8.0.4, the new app doesn't have core-js as dependency: "dependencies": { "@angular/animations": "~8.0.1", "@angular/common"