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...
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...
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[]...
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...
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...
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.
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...
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...
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-...
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...