Questions tagged as 'angular'

1
answer

Guarding of routes on Ionic is it possible?

I'm currently doing security on my routes in ngOnInit, if it has on the localStorage the token key, then it stays on the Home route (My root route is the home). Otherwise, it redirects to the login screen. The problem is that it has a delay, the...
asked by 16.08.2018 / 20:44
0
answers

Angular - I can not make the files generated by the build (npm) work on localhost

I ran the build command (dev option) and copied the dist folder into the htdocs folder of XAMPP. When calling the project in the browser, the app-root is not recognized and shows nothing on the index page. <!doctype html> <html lang="...
asked by 16.08.2018 / 23:44
2
answers

NgModel with corner checkbox

I have a checkbox that is iterated in an ngfor: <div *ngFor="let tela of telas; let i = index; trackBy: getIndex" class="custom-control custom-checkbox check"> <input type="checkbox" [(ngModel)]=selectedIds[i] (click)="OnCheckbo...
asked by 28.08.2018 / 14:48
2
answers

How to make an input mask simulating money with ionic 2?

I think the question is quite explanatory, but I would like to know how I can create mask using decimal numbers to simulate the real currency ( 1.000,00 ).     
asked by 14.08.2018 / 21:46
0
answers

How to show image in angular 2+?

This code is working perfectly on another; <div class="col-sm-12 col-xs-12" *ngIf="is_edit && restaurant.image"> <div class="image_for_edit"> <img src="{{url + '/imageRestaurante/' + restaurant.image }...
asked by 14.08.2018 / 20:31
0
answers

How to clear data in Input using Templates Forms of Angular 2

I have an input and 2 buttons, one to delete and send. How do I clean up what's in the input using Templates Form do Angular 2 ?     
asked by 14.08.2018 / 07:39
1
answer

Angular - Take data from an json object and put it on a table along with another object

Hello, I was wondering if anyone could help me, today I have a table that receives data from a component (Media), I have another component that is playlists, in the playlists I associate the media with a playlist. In the stocking table, I want...
asked by 18.08.2018 / 00:30
0
answers

Error: Uncaught (in promise): TypeError: Can not read property 'name' of undefined

You are generating this error when you enter the page.    Error: Uncaught (in promise): TypeError: Can not read property 'name'   of undefined TypeError: Can not read property 'name' of undefined at   Object.eval [as updateDirectives] (Addmen...
asked by 21.08.2018 / 15:43
0
answers

Error: Cors integrating nodejs and Angular 6

I have a problem that I need to address, but I'm not getting any solutions yet. I have an application in NodeJs that I developed in #ExpressJS and I face some problems related to the CORS of the Browser. In my index.js from my node backend...
asked by 15.08.2018 / 07:14
0
answers

Difficulty implementing Angular Paging 2+

You may notice that paging back-end is working. My goal is to get the first three records of the first tab in the Angular as it shows in Postman, if I can finish this first step of the implementation I will be able to do the rest. Th...
asked by 16.08.2018 / 17:55