Questions tagged as 'angular'

0
answers

Submit in a "form" component hidden div in another component

I have two components, one (formNewPost) inside another (container-posts). I would like to know if it is possible to use HostBinding and HostListener in this case. Follow the code ... container-posts.component.html <div class="row" id...
asked by 12.07.2018 / 08:49
0
answers

The 'ng' program is not currently installed. You can install it by typing: sudo apt-get install ng-common

I'm learning to work with Angular and I'm on the rebound here. I'm trying to create a new folder using the ng new "nome da pasta" command, but the message    The 'ng' program is not currently installed. You can install it by typin...
asked by 12.07.2018 / 15:50
0
answers

Load component dynamically

How do I load a dynamic component depending on the module I'm seeing in Angular? I want to have a sidebar that will display content according to the module. For example: If you are viewing the Users module, I want to see the list of most a...
asked by 20.07.2018 / 01:58
1
answer

Call delete on angle 6

I have this HTML <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <table class="table table-striped table-bordered table-hover"> <caption>Lista de Ope...
asked by 20.07.2018 / 18:57
0
answers

Use JWT to authenticate API requests using typescript

Speak, then I have a problem, I apologize if this problem has been solved before, but I did not find the solution; In my API I can create my token and made a middleware route for my API token When I test in Postman everything is fin...
asked by 20.07.2018 / 19:13
0
answers

Check the return of window.open if it is JSON or PDF

Hello! I am creating an application using Angular, and request the data from an API using Observables with Angular 4. This Observable returns me a HASH and I use this hash to complete a route (a URL) to another API to download a PDF file . But t...
asked by 18.07.2018 / 16:34
0
answers

Bad request http post angle request

When performing a http post request, I'm getting: Object {headers: {...}, status: 400, statusText: "Bad Request", url: " link ", ok: false, name: "HttpErrorResponse", message: "Http failure response for link 400 Bad Request", error: {...}}...
asked by 09.07.2018 / 18:10
0
answers

Direct Print to the Printer with Angular and Electron

I would like to know if someone has already gone through this and if you have examples or can you give an example of how to print directly to the printer without opening the print dialog using Angular and Electron. I am studying the possibili...
asked by 08.07.2018 / 22:30
0
answers

HTTP request POST with x-www-form-urlencoded in Agular 6

I need to make an HTTP POST request with x-www-form-urelcoded in angle 6. I tried something like: pesquisaEmail(email): Observable<any>{ let headers = new HttpHeaders(); headers.append('Access-Control-Allow-Methods', 'GET, P...
asked by 10.07.2018 / 00:08
0
answers

Bind of fields in dynamic form Angular 5

I have a form that will be created in a totally dynamic way: <form id="custom-asset-form" #form="ngForm" (ngSubmit)="saveAsset(form)"> <div *ngIf="asset"> <app-ad-child [adItem]="asset"></app-ad-child> </div>...
asked by 13.07.2018 / 17:03