Questions tagged as 'angular'

1
answer

Return service variables to the Angular2 component

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....
asked by 25.06.2018 / 13:36
2
answers

Get Token-Jwt on Ionic

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...
asked by 16.10.2018 / 06:05
1
answer

Web | Modal message only in desktop resolutions

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...
asked by 22.05.2018 / 23:33
1
answer

Add array in Angular

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...
asked by 08.05.2018 / 21:34
1
answer

Cycle for in Ionic view?

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...
asked by 21.05.2018 / 14:11
1
answer

Test Files paths in Angular2

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...
asked by 27.04.2018 / 08:31
1
answer

Error in a queuing service, NullInjectorError: No provider for HttpServiceService

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...
asked by 25.04.2018 / 12:33
1
answer

Include an own module in another Angular 5

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 '@...
asked by 25.04.2018 / 14:35
1
answer

Problem with Route in Angular 6

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...
asked by 15.05.2018 / 00:12
3
answers

mat-select and event change

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...
asked by 22.05.2018 / 22:51