Relative Content

Tag Archive for angularangularjs

fake api is not working for angular cors error

giving error for cors if i make backend then i can make cors problem solve but when i use fakeapi how can i solve this problem for cors erorr
Access to XMLHttpRequest at ‘https://freeapi.gerasim.in/api/BigBasket/GetAllProducts’ from origin ‘http://localhost:4200’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Unable to run Angular application using npm run local

I am working on hybrid angular application using angular 8 and angular 1. Earlier I used to run application on my Ubuntu system using commnad npm run local and app used to work fine locally, but for some reason i changed my laptop to windows OS and now when i am trying to run the same application using command npm run local. It is giving me following error

Limpar Cache Cliente Angular

Ola, quando eu faço o build do projeto angular mesmo colocando ng build –output-hashing=all, o cliente precisa limpar os dados de navegação. Como faço para fazer o build e o cliente não precisar ficar limpando o cache do seu navegador para acessar a versão mais recente do projeto?

How to get html element using renderer2 service in angular?

I am trying to get html textbox element using renderer2 service of angular/core to manipulate it.
Although my code is not giving any error but it stops executing during execution on the line in which I am trying to get that element.
that is –
this.renderer.selectRootElement('#0', true).focus();
It is also setting up id of that text element as 0 which I am doing in initial lines.

Is continued use of Angular.js in 2024 a risk?

My org is using Angular.js for several applications and is slowly-but-surely working on replacing with latest Angular. It feels very wrong to not be more urgent about it, but I can’t put my finger on what’s the worst that could happen.

Angular Signal input import issue

I’m trying to use new signal input feature, but I get that error when I try to import the input from @angular/core.
TS2552: Cannot find name 'input'. Did you mean 'Input'?
I have the newest version of angular. Other signals features like effect does import correctly.
What might be the issue?