Questions tagged as 'angular'

1
answer

Property 'catch' does not exist on type 'ObservableHttpEventany' ANGULAR 6

I created an interceptor to catch all the errors using angle 6, but catch returns this message. intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>{ return next.handle(req) .catch((err...
asked by 11.06.2018 / 15:13
1
answer

Interaction in browser behavior when leaving the page

Is there any way to open a modal question, when the person tries to exit a game in the browser, type, changing the address in the URL or giving refresh, or even harder, wanting to close the browser? I have this code, but it does not solve all...
asked by 11.06.2018 / 14:24
0
answers

Admin Template Materialize

The company bought a template to implement a menu, but clicking the menu button is giving this error in the console: FullComponent.html:34 ERROR TypeError: Cannot read property 'toggle' of undefined at Object.eval [as handleEvent] (Full...
asked by 05.05.2018 / 16:09
1
answer

Formatting input

Hello, I'm having a big problem with javascript. I need an input field that is formatted as follows: Only accept number and periods; Accept only one point; After the dot only accept 8 decimal places; The part of accepting only number...
asked by 01.05.2018 / 19:57
0
answers

Load external file settings

I'm developing an Angular application that will connect to external services. However I have no guarantee that the service paths to which this application bind remain the same and as such my goal was to have an external configuration file with t...
asked by 17.05.2018 / 16:30
0
answers

matDatepicker component

So the value that comes from the database is populated in the <input matInput disabled name="dataInicio" [(ngModel)]="empresa.dataInicio" placeholder="Data início de atividade do banco *"> Not so: <input matInput [matDatepicker]=...
asked by 17.05.2018 / 16:37
0
answers

Upload Preview in modal

I was previewing through another tab: public visualizarArquivo(file): void { var url = window.URL.createObjectURL(file); var a = document.createElement("a"); a.setAttribute("href", url); a.setAttribute("target", "_blank");...
asked by 14.05.2018 / 13:15
0
answers

I can not get the route parameters in angle 5

Every time I try to get the parameters of a route I get an empty object component : ngOnInit() { this.route.params.subscribe( params => { this.token = params console.log(this.toke...
asked by 02.05.2018 / 22:02
0
answers

Generate report through the Web API for C #

I am starting the report part of my system, when making a request to generate a report on a new tab I can even do it by link passing a few parameters. window.open(this.httpUtil.url('SinistroReports/' + search.DateStart +'/' + search.DateEnd +'...
asked by 02.05.2018 / 19:14
0
answers

error when generating angle build

I have an angular project that runs normally in the production environment, but I'm wanting to build it and I'm getting the following error when using the npm run build command:    ERROR in Error: Type ImageCropperComponent in C: / d / Worksp...
asked by 17.04.2018 / 14:04