Questions tagged as 'angular'

1
answer

Script file on an angular component

Hello, I have an Angular component that needs a specific script file! This component is not started on the first screen of my application, so I can not put my script file in the Bundler, because through the Bundler this file is loaded only on...
asked by 11.06.2018 / 06:23
1
answer

Angular application does not run locally in IE?

Following the Internet Explorer v.11 error : DETAIL: In other browsers ( Chrome and Firefox ) it works (wheel / load).     
asked by 20.05.2018 / 01:27
1
answer

How to leave objects side-by-side coming from * ngFor?

I have this situation: <div class="row"> <div class="col-lg-12"> <!-- 1 Primeiro cartão, 1° objeto --> <div class="card borda-card" *ngFor="let evento of eventos"> <a href="/assets/img/2.jpg" style="b...
asked by 04.05.2018 / 16:25
1
answer

Creating and using non-angular component 2

I have created this component to show message of success or not. import { Component } from '@angular/core'; import { MatSnackBar } from '@angular/material'; @Component({ selector: 'app-snack-bar', templateUrl: './snack-bar.component.html'...
asked by 06.04.2018 / 01:16
1
answer

Disabling check according to selected quantity [closed]

I have a component that has an input: checkbox. This component is repeated several times on the screen. How do I block the checkbox, limiting my user to click a maximum of 3 checkboxes ie the user will only be able to click a maximum of 3 checkb...
asked by 09.04.2018 / 20:31
1
answer

Non-Angular Boolean

I have a class in the Angular call user that receives 2 boolean fields export class UsuariosModel { UsuarioId: Number; Nome: string; Sobrenome: string; Email: string; Senha: string; Corretor: boolean; Contrato: bool...
asked by 20.04.2018 / 01:07
2
answers

How to implement an alert in the corner HTML page?

As you can see in the figure below the component Angular is composed of component, css and HTMl mediafile-cadastrar.component.htmlItriedtoputasimpleimplementationofalertasyoucanseebelow;<scripttype="text/javascript"> alert("alo tudo...
asked by 05.04.2018 / 15:11
1
answer

How do login validation in angular4?

Expensive, good afternoon, I would like to know how to do to show an invalid user message or password in angle 4. '     Login     Hello! Sign in with your email <div class="row"> <div class="input-field col s12"> <di...
asked by 23.04.2018 / 22:37
1
answer

difficulty to list data in angular datatable 4

As the title says, I can not load bank records into the PrimeNG dataTable. No error messages appear in the VisualCode console, no error messages appear in the internet browser console, no error notifications appear in the code itself. I th...
asked by 28.03.2018 / 13:42
1
answer

Increase Array with filter

I need to increment the item this.order[i].nome_service in the variable this.result only when clicking the checkbox, as well as decrement when unchecked. orders = [ {id_service: "1", id_empresa: "9", nome_service: "Servico 0...
asked by 22.03.2018 / 01:45