Questions tagged as 'angular'

1
answer

Tooltip of Bootstrap 4 does not work correctly on Angular 6

Below is the bootstrap implementation in my application (angular.json) "styles": [ "src/styles.css", "./node_modules/bootstrap/dist/css/bootstrap.min.css" ], "scripts": [...
asked by 04.10.2018 / 21:47
1
answer

Passing data to a modal

I'm trying to pass data to a modal. I think I got the first part, because in the chrome console I see that I received this data, but I do not know what is wrong, that I can not see them on the screen. Home Html <button ion-button small c...
asked by 28.09.2018 / 16:31
1
answer

ERROR TypeError: Can not read property

I have to click a button on an html page and trigger a function in the component.ts called TestTest, however I'm getting an error message (error image) front image component.tsimport{Component,Input,Output,EventEmitter}from'@angular/cor...
asked by 28.09.2018 / 22:51
1
answer

My policy does not work in Angular

I have the following directive: import {Directive, ElementRef, Input, Renderer} from '@angular/core'; @Directive({ selector: '[tipo-coluna]', }) export class TipoColunaDirective { @Input() corOperacao: number; constructor(public...
asked by 27.09.2018 / 19:00
2
answers

How do I manipulate 3 Checkbox in Angular 2?

I have 3 Checkboxes. The first option is bread, the second option is fish and the third has salt. I want to use Tamplate forms and not reactive forms. Can someone help me? <form #form="ngForm"> <label> <input n...
asked by 29.09.2018 / 18:27
1
answer

Add and remove classes in Angular

I have a card that will appear on certain occasions. As effect I am using the bootstrap design material to give a ZoomIn. I'm using ng4-clickout so when I click outside my element it will apply the ZoomOut class and disappear with the element....
asked by 14.09.2018 / 13:37
1
answer

Redirect page after login

I'm trying to redirect to the home page after logging in, but the system does not log out Test code I made for demonstration is this: ngOnInit() { this.loginForm = new FormGroup({ login: new FormControl('', {validators: [Valida...
asked by 12.09.2018 / 17:34
1
answer

How to assign a Json source from an interface

   I'm trying to generate an interface from a Json file but this one   giving error, what would be the error in my code? export interface Compra { event: string; timestamp: number; custom_data: number; value:...
asked by 11.09.2018 / 19:09
2
answers

Problem integrating the Jquery, bootstrap and Popper.Js scripts in angle 6

I have a problem integrating the bootstrap.js, popper.js, and jquery.js scripts into my Angular project. I've already made a few attempts, but nothing has resolved so far. My scripts are being merged as follows: "styles": [ "....
asked by 01.09.2018 / 20:06
1
answer

How to access the styles.scss file from within an Angular component

I'm working with Angular (project generated by @angular/cli ), and the structure of my project is below: src | - app | - foo | - foo.component.js | - foo.component.scss | - foo.component.html | -...
asked by 02.09.2018 / 04:07