Questions tagged as 'angular'

3
answers

Error with Bootstrap 4 in Angular 5

I hit with the following problem in Angular when trying to install Bootstrap in version 4: ERROR in ./node_modules/css-loader?{"sourceMap":false,"importLoaders":1}!./node_modules/postcss-loader/lib?{"ident":"postcss","sourceMap":false}!./node_...
asked by 19.01.2018 / 14:16
2
answers

Initialize a form with values of an object with ANGULAR 4

I'm having trouble creating a CRUD with Angular 4. I'm trying to create a form by putting the value of an object in it so I can edit it. Here's an example: <form #editar="ngForm" (ngSubmit)="lerClientes()"> <div> <labe...
asked by 02.05.2018 / 00:23
2
answers

non-angular cors error 6

I'm having this error in a project: Failed to load http://127.0.0.1:8000/hqi/pages: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:4200' is therefore not allowed access. And I can not...
asked by 11.10.2018 / 15:31
2
answers

Is it possible to connect my application made in Laravel with the Vue or Angular?

I started a project that will eventually have an application in Vue or Angular . My question is whether this connection can be made between the system and the application, and whether this "connection" can be made through an API or other...
asked by 25.02.2018 / 23:48
1
answer

Limit NgFor

I would like to know how do I limit my NgFor to spend only 6 times ?? In my .TS I imported this module below ... import { NgForOf } from '@angular/common'; I tried to use it this way, but it did not work ... <div *...
asked by 17.04.2018 / 14:00
1
answer

Activation of validation Angular FormGroup

Hello, I have a form using formGroup! When I click the confirm button it does not perform the validations, without any reaction in the fields ... so ... However,IwishthatwhenIclickedthisbutton,itvalidatesthefieldsandreturnstheerrormessage...
asked by 11.04.2018 / 19:28
1
answer

Variable copy in angular 2 (typescript) [duplicate]

I need to make a copy of an array without using reference Example var a = ["teste", "teste1"]; var b = a; a[0] = "teste3"; b[0] = "teste4"; console.log(a) //mostrar teste3 console.log(b) //mostrar teste4     
asked by 04.07.2018 / 13:06
2
answers

SHA-1 with TypeScript

I'm doing a project and need to encrypt a password, I wanted to use SHA-1, but I did not find anywhere to use with TypeScript, does TS support SHA-1?     
asked by 18.07.2018 / 15:46
1
answer

Toogle Select Function

I have the following scenario: I have a list of addresses that comes dynamically from the database, according to what is registered by the user. I need to enable only one address, so when one button is activated all other ones are disabled...
asked by 31.10.2018 / 08:27
1
answer

Problem implementing the update method in Angular 2+

I'm using MongoDB database. I believe that most understand that to update a record it is extremely important to get the identifying key, that is _id , I am able to get the identifying key of the record doing so; ngOnInit() { const codigoL...
asked by 14.08.2018 / 14:48