Questions tagged as 'angular'

2
answers

How to do login validation in Angular?

I would like to know how to do so in case the user type an invalid user login and password appears in the message "Login invalid". Here's the code I've already done. import { Component, OnInit } from '@angular/core'; import { AuthService...
asked by 30.04.2018 / 19:46
0
answers

How to use jQuery inside component - Angular

So, I'm having trouble running jQuery (initializing the materialize tabs component) within a specific component. For now the code looks like this: home-logada.component.html <div class="row"> <ul id="tabs-swipe-demo" class="tab...
asked by 27.04.2018 / 21:04
0
answers

Inject service in the provider of the page.module

I'm working with Ionic 3 and I'm using some of their native services, such as login with facebook. Everything works perfectly, my problem lies in something I am trying to do to further organize my code. When I use the facebook plugin for th...
asked by 26.04.2018 / 19:41
1
answer

Angular 5 does not redirect to another component

I am trying to make that when clicking a button, the user is redirected to another component, however, they are mingling. My main component is Home, and I'm trying to redirect to the Game component. See: app.module.ts import { BrowserModu...
asked by 04.05.2018 / 20:10
2
answers

Multiple GET requests with Angular 4/5

I'm doing a query in an API (SWAPI). Return is an object with all the information of the Star Wars characters. So far so good. But within this object, I have some sub-levels that are arrays and that besides some information, also has another URL...
asked by 06.05.2018 / 17:25
1
answer

error in using installed packages via npm with -g

I installed npm install typescript -g and npm install @angular/cli -g and I'm not accessing tsc and ng . 'ng' não é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes. 'tsc'...
asked by 24.04.2018 / 00:29
0
answers

Image loading by directive of the Angular

I have a directive in the angle 1, that in any request (PUT, GET, POST and DELETE), it puts a color on the screen, plus a loading image, made by a CSS I tried to angle 2, but I could not. Code In index.html, it has <loading><...
asked by 19.04.2018 / 21:21
1
answer

How to do an implementation of an Angular application in Heroku using Gitlab?

Angular Usage 5 (5.2.10) and Angular CLI (1.7.4) and I would like to do Deploy on Heroku, however my files are in the Gitlab repository. More information: node (8.11.1) and npm (5.6.0).     
asked by 20.04.2018 / 15:38
0
answers

Mat-tab - Service for each tab

I have this code <mat-card> <mat-card-title-group> <mat-card-title>Declarações processadas com sucesso</mat-card-title> </mat-card-title-group> </mat-card> <mat-tab-group (selectedTabChange)="onLi...
asked by 17.04.2018 / 18:54
1
answer

Apply the principle of sole responsibility in methods that use subscribe

Consider the following class: export class TesteComponent { //... public onSubmit() { this.checkA(); } private checkA(): void { this.service.checkA(value) .subscribe(response => {...
asked by 16.04.2018 / 19:48