Questions tagged as 'angular'

2
answers

@Viewchild Angular 5, 6 - ElementRef

I am referencing a control using ElementRef and for this I use the following: @ViewChild('btnGuardarDatosGenerales') btnGuardarDatosGenerales: ElementRef; I need the reference to be able to reach your click () event, with javascript I can...
asked by 08.08.2018 / 21:37
0
answers

Access-Request-Headers in angularjs and c #

In the angularjs part I have this part of the code to show the request-headers from the web: $http.defaults.headers.common["User"] = "MjM="; $http.defaults.headers.common["Password"] = "MjM="; $http({ method: "GET", url: "http://lo...
asked by 24.05.2018 / 10:06
0
answers

How to get an image from an api rest using HttpClient in angular 4

I have the following service in my angular application: getProviderPhoto(id:string){ return this.http.get(this.apiUrl+"/"+id+"/images", {responseType: "blob"}); } And I need to convert the response of this service, which in this case...
asked by 16.05.2018 / 01:33
1
answer

Variable This.router undefined within a function

I'm working on Angular with TypeScript. insert a table with DataTables and in the button configuration I have an indefined error, you can support me to tell me how to use the This object within a function. I show my example code: import { Comp...
asked by 14.05.2018 / 13:56
1
answer

Break the chain in Css, It leaves the Col-md

I have a row, which I separate in columns and each column I separate again, always in equal parts The problem is that the span goes out of its cabbages and goes to the other extreme. SCSS .aggrid--units--detail-child { .center...
asked by 22.05.2018 / 16:27
0
answers

Too much initial load time in Angular

How could I eliminate this long loading time? Why does it take so long to load the page that time is marked?     
asked by 20.08.2018 / 22:25
1
answer

Can not bind to 'ngModel' since it is not a known property of 'input'

I know there are many questions on this topic. I have navigated a lot and at the moment I did not find something to solve it. The problem is that even though FormsModule has been imported, it still marks the same error. AppModule.t...
asked by 27.06.2018 / 23:09
3
answers

TypeError: Can not read property 'name' of undefined

I have the following code in a service and it sends me the following error by console:    Error: Uncaught (in promise): TypeError: Can not read property 'name'   of undefined TypeError: Can not read property 'name' of undefined Apparently...
asked by 27.06.2018 / 23:45
0
answers

Error in the request from angular to service made with symfony

When I make my post request from angular towards service done with symfony, it responds that there is an error in the request, also in the grant_type, (use oauth 2.0 in the authentication), I found a post where it tells me that the configuration...
asked by 13.04.2018 / 17:33
3
answers

Problem with the Cors Spring Boot and Angular 4

I am using a Api Rest with Spring boot with a basic auth of spring security, When I make the request to the backend with Angular it gives me as a result a problem with the Cors 'login:    1 Failed to load link : R...
asked by 22.04.2018 / 16:19