I am doing an authentication service, if it is correct it allows you to continue, but if not, you can get several messages, The problem is that I do not know how to take the service variables to the component so that I can show it in the view....
I am consuming an ApiRest in which I get a Token Jwt. The problem I have is that for example the token I receive comes in the following way:
Code:
let jwt = jwt_decode(resp);
Token Obtained:
{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVC...
I have a web page that interacts with smartphones (make calls, save contacts, open a specific app, etc.) therefore, if any user accesses from a notebook or desktop computer (including a tablet) your experience will not be the same. That's why...
I need to know how to add array in the Angular component (TypeScript)
addCostCenter(i){
this.costCenter.push(i);
}
Every time I click, there will be a function that will add an array; I will have many one-dimensional arrays.
I need...
I had a question and that is that I want to print an element in the ionic view a number of times according to a numeric variable
let's say:
public numero = 4;
then in the view try doing a kind of cycle with *ngFor but w...
I want to do a check in Angular2, which consists of verifying that said file is there and that it has not been deleted accidentally.
The problem is that I realize that I am comparing the strings, not the file itself.
it('I check routes i18n...
According to what I have been reading because of the error it gives me, it is because I lack some import in the module of the app, but I do not see any missing, I have the service and the component from where I call the service and the module of...
My question is:
How can I import modules from Angular material in my own module, and then import that module in app.module.ts?.
This is my personal module:
import { NgModule } from '@angular/core';
import { BrowserAnimationsModule } from '@...
Hi, I want to create a route, I followed a tutorial step by step and I can not make it work
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
// Routes
import {AppRoutingModu...
I'm trying to start a mat-select, I'm handling the data well, but I want to do something when one of the values is selected.
I use angular 6, this is my ts code:
import { Component, Input } from '@angular/core';
i...