Questions tagged as 'angular'

0
answers

Is it possible to send the value of a typescript variable to a scss variable? Angular

Is it possible to send the value of a typescript variable to a scss variable? From my research I have seen that it is possible otherwise, to receive data from SCSS for Typescript. Would you like to know if it is possible otherwise?     
asked by 09.10.2018 / 20:22
0
answers

Custom mask directive in Angular 5

I'm trying to use the RobinHerbots / Inputmask library as a custom Angular 5 directive. However, when using the mask, the field not valid because it can not get the value typed. When I take the mask directive, the field takes the value normall...
asked by 16.10.2018 / 18:35
1
answer

Get value from the Angle Datepicker

I wanted to get the value of data picker in my component.ts of Angular. Follow my code data picker : <div class="form-group col-md-6 form-md-line-input" style="margin-top:-95px;"> <mat-form-field> &l...
asked by 16.10.2018 / 19:20
1
answer

Why is it necessary to upload the ng serve in 0.0.0.0?

I installed Angular inside a Docker container ( fabiojanio / ionic ) however, I can only access the application when I start the server this way: ng serve --host 0.0.0.0 I would like to use only: ng serve How to do this?     
asked by 06.10.2018 / 03:01
1
answer

Angular: Problems with TouchEvents

I need to detect touchstart , touchend and touchmove to make a selection of days as the user drags the finger on the screen. But the touchmove event apparently was not done for this purpose. As the example below, it wi...
asked by 09.10.2018 / 21:29
0
answers

Adding data to the JSON file in Angular 6

I have a code that sends and receives messages. Can I read a local JSON file With this code in ngOnInit I can read what is inside the JSON file and turn it into a message that is displayed on the screen: ngOnInit() { this.emissor = 'Luis...
asked by 27.09.2018 / 18:35
1
answer

Doubt routerLink and route.navigate (route I want)?

When I use routerLink , does the target page run the commands within ngOnInit() and when I use this.route.navigate([<rota de acesso>]) does not execute? I would like to know if you have this.route.navigate() a...
asked by 29.09.2018 / 23:11
0
answers

Create a button on the ag-grid-angular

How to create a button on the grid app.component.hmtl <!--The content below is only a placeholder and can be replaced.--> <div style="text-align:left"> <span> Tela Cancelamento de Vendas </span> <ag-grid-a...
asked by 26.09.2018 / 16:42
2
answers

Child component calling method of another child component

I have 3 components, one component A Father, Son B, and Son C export class A Parent implements OnInit { constructor() { } } In Compose B I have a method to create user export class B Parent implements OnInit { constructor() {...
asked by 24.09.2018 / 00:31
1
answer

Angular 2 base64 image how to use?

I have an "ERR_INVALID_URL" error and it does not load the image. Does anyone know how to solve it? My html and Ts are like this. //Aqui está vindo a url do servidor let a = value.params["dataBuffer"]; //Aqui estou convertendo o b...
asked by 02.10.2018 / 21:25