Questions tagged as 'angular-5'

3
answers

Error compiling Angular project 5 "is missing from the TypeScript compilation."

When I try to run the angular server to test the project it fails to compile with the following error: ERROR in ./src/app/shared/objeto/Venda.ts Module build failed: Error: F:\Xampp\htdocs\www\Angular\fidaliza\src\app\shared\objeto\Venda.ts i...
asked by 28.02.2018 / 01:56
1
answer

How to break lines according to a value

How do I break lines by value? For example a = 8. Then I have a "d" variable that receives a string. var d="written work considered in its original wording". If I put an If = a; it traverses the string by always counting q for 8 characters it br...
asked by 30.09.2018 / 23:58
2
answers

How to validate e-mail and CPF in angular 5?

Expensive, I would like to know how I can validate the e-mail and CPF in angular 5. I made the basic code: <mat-form-field class="full-width"> <input matInput placeholder="E-mail" [formControl]="emailFormControl" [(ngModel)]="e...
asked by 02.10.2018 / 21:02
1
answer

Send headers in angular http request

I need to send three values in my header in http request, but when I check in the browser I realize that my headers have not been sent. I tried something like: trocaToken(token):Observable<any>{ const _headers = new HttpHeaders(...
asked by 23.07.2018 / 16:28
1
answer

Error trying to initialize the Angular project (To disable this warning use "ng config -g cli.warnings.versionMismatch false")

I've taken a project I'm studying for a course. I installed the dependencies of the node with the command npm install and everything went well. Initializing the webPack with the command ng serve shows this error:    Your global...
asked by 17.05.2018 / 16:56
3
answers

how to send the CPF number without the dots and dash (Input Mask)

I'm creating a mask with inputMask , but the CPF is sent like this: 222.222.488-19 . And I want it to have the mask of input but at the time of sending it will be without the dots and dash. Type this 22222248819 . My...
asked by 22.11.2018 / 01:14
1
answer

How to make a scroll bar made by css in microsoft edge back to top when page switching?

Error in: Microsoft Edge Technology used: Angular (4 +) When it happens: Only when the size of the screen is small, and not you can view all items in the table listing Used Table: Angular Material Next, I'm doing a project wi...
asked by 24.06.2018 / 20:04
1
answer

ChangeDetectionStrategy Angular

While studying Angular 6 I was seeing that it has different strategies of how the component is updated according to the Events, XHR and Observables within my application. After much research I did not find any content in Portuguese about this...
asked by 12.09.2018 / 20:00
0
answers

Load external file settings

I'm developing an Angular application that will connect to external services. However I have no guarantee that the service paths to which this application bind remain the same and as such my goal was to have an external configuration file with t...
asked by 17.05.2018 / 16:30
1
answer

Object as parameters for C # API

I have a request made in Angular for C #. However I do not know how to receive the data in My API In C #. getWithFilters(filter: any) { let parametros: any = { razaoSocial: filter.razaoSocial, cnpj: filter.cnpjcpf,...
asked by 02.05.2018 / 22:02