Questions tagged as 'angular'

1
answer

Send data to guardians in the angle

I need to make a guard to check if a user has permission to the system screens. I have an array stored in the localstorage that tells me the permissions of a user. Example: [1,2,5], where the number is the screen id that the person can acc...
asked by 30.08.2018 / 17:45
0
answers

Problem with API query with Ionic

I need to do some queries with Ionic 3 on a server whose request must be POST to be returned a JSON. Right away on the first test of creating the query in the browser inspector I get the error: Failed to load URL:Response to preflight request...
asked by 11.09.2018 / 02:55
0
answers

Angular SocketIo - Does not give error, but does not work

Good night, I'm trying to get the data in realtime with socketIO, but it does not work. Via console is sending and sending from the backend, but I can not show in the frontend nor does it show any information receiving data. tickets:any[]...
asked by 11.09.2018 / 04:14
1
answer

Non-angular percentage mask

How can I make a percentage mask using angular 2 +? I want to apply it to my input: <input type="text" [(ngModel)]="produto.indice_lucro" name="indicelucro" id="indicelucro" class="form-control"> <label for="indicelucro">Índice...
asked by 03.09.2018 / 15:28
0
answers

How to access return of an EventEmitter object created from http.get

I have a service that performs a get on a given address. @Injectable({ providedIn: 'root' }) export class PersonService { private person: Observable<Person>; personBroadcast = new EventEmitter(); constructor(private http: HttpC...
asked by 27.08.2018 / 14:50
0
answers

Angular ngx-toastr

Good morning Guys, I'm using angle 6 together with ngx-toastr, I think I made the whole configuration correctly, but only a color pattern appears for the messages. The following image is below: Thank you.     
asked by 03.09.2018 / 05:19
0
answers

Image for base 64 in javascript is not working

I need to convert an image to base 64 to send to the database, I believe the characters are not fit in my variable? My form: <form method="post" enctype="multipart/form-data"> <label id="labelfile" class="btn btn-primary wa...
asked by 24.08.2018 / 14:36
0
answers

Difficulty finding list in the Angular?

Review the image below; In my class of services it was like this; pesquisar(): Promise<any> { return this._http.get('${this.url}/menus' ) .toPromise() .then(response => { respons...
asked by 24.08.2018 / 14:28
1
answer

Pass an id through a checkbox in Angular 5

I need to pass an id through a method on a form when my checkbox is checked. I tried several ways without any results. Below is the code                             {{event.name}}                <div class=" col-3 simple-...
asked by 24.08.2018 / 15:05
0
answers

How to do if not repeat the function for those who already reached a number

I make a call in the DB from the API to see the sales percentage data for a store's branches, and if the percentage is greater than or equal to 100% I should play a song and change its color to green. And I use the schedule ( link ) > to...
asked by 23.08.2018 / 17:34