Most voted "angular-5" questions
Use this tag for specific questions about version 5 of Angular, Google’s web framework. Use the [angular] tag for any question about Angular that is not specific to an individual version.
Learn more…23 questions
Sort by count of
-
9
votes3
answers1950
viewsError when compiling Angular 5 project "is Missing from the Typescript Compilation."
when I try to run the angular server to test the project it fails to build with the following error: ERROR in ./src/app/shared/objeto/Venda.ts Module build failed: Error:…
-
2
votes1
answer307
viewsSend 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:…
-
2
votes1
answer669
viewsHow to break lines according to a value
How do I break lines according to the value ? For example a = 8. There I have a variable "d" q takes a string. var d = "written work considered in its original wording". If I put an If = a; it…
-
2
votes7
answers7167
viewsHow to receive the CPF number and format to be without the dots and dash(Input Mask )
I’m creating a mask with inputMask, but the number is received so: 222.222.488-19. And I want him to have the mask on input but when sending it will be without the dots and the dash. Like this…
-
2
votes2
answers1941
viewsHow to validate email and CPF at angular 5?
Dear, 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"…
-
1
votes1
answer203
viewsObject as parameters for C#API
I have a request made in Angular for C#. However I don’t know how to receive the data in My API In C#. getWithFilters(filter: any) { let parametros: any = { razaoSocial: filter.razaoSocial, cnpj:…
-
1
votes0
answers15
viewsLoad external file settings
I’m developing an Angular application that will connect to external services. However I have no guarantee that the paths of the services this application connects to remain the same and as such my…
-
1
votes1
answer792
viewsError trying to initialize Angular project (To disable this Warning use "ng config -g cli.warnings.versionMismatch false")
I picked up a project I’m studying from a course. I installed the Node department with the command npm install and it all worked out. When initializing webPack with the command ng serve shows this…
-
1
votes1
answer102
viewsChangedetectionstrategy from the Angular
When studying Angular 6 I was seeing that it has different strategies of how Component is updated according to the Events, XHR and Observables within my application. After much research I did not…
-
1
votes1
answer69
viewsHow do I make a css scroll bar in microsoft edge go back to top when changing pages?
Error in: Microsoft Edge Technology used: Angular(4+) When it happens: Only when the screen size is small, and not it is possible to display all items of the table listing Table Used: Angular…
-
0
votes1
answer1166
viewsCircumvent "object property does not exist" error
I have the following problem, always time to deal with the result of the request http in the subscribe points out errors saying the property x does not exist in result return…
-
0
votes1
answer746
viewsSolving Precedent at the Angle
I am working on an application with Ionic 3 + Angular 5 and I have to take an Ionic Storage value as follows: this.userStorageService.get('expiresIn') .then((data) =>…
-
0
votes2
answers356
viewsAngular 5 + Ionic 3: I can’t send headers in API requests
I am consuming an API through a post method and need to command the Authorization header. I am doing it as follows: public post(resource, body, authorization = false): Observable<any> { const…
-
0
votes0
answers228
viewsCorrect way to pass headers to the Httpheaders Object
I’m trying to figure out how to pass headers the correct way to instantiate an object HttpHeaders in the Angular 5. I have the following code: postApi(body: any, route: string) { return new…
-
0
votes1
answer4391
viewsAngular5 - Error: Local Workspace file ('angular.json') could not be found
This error happens when I start the application: Local Workspace file ('angular.json') could not be found. Error: Local Workspace file ('angular.json') could not be found. At Workspaceloader.…
-
0
votes0
answers284
viewsBootstrap does not work on Angular V-6
I can’t get Bootstrap on my page: installed version 3 npm install --save bootstrap@3 in the angular.json put the path: "styles": ["../node_modules/bootstrap/dist/css/bootstrap.min.css"…
-
0
votes1
answer480
viewsAngular 2 image Base64 how to use?
I have a "ERR_INVALID_URL" error and does not load the image. Does anyone know how to solve ? My html and Ts are like this. //Aqui está vindo a url do servidor let a = value.params["dataBuffer"];…
-
0
votes1
answer263
viewsRedirect to page after API consumption
I have two Components in my application made with Angular 5+. A Component is a form, where I fill in parameters that are passed in a GET to my REST API. This form (component1) retrieves the JSON…
-
0
votes1
answer1028
viewsClick Outside Angular 6
I upgraded my Angular from 4 to 6, and consequently had a problem with my Outside click directive, it stopped working on all components. my directive: import { Directive, Output, EventEmitter,…
-
0
votes1
answer233
viewsAngular 7 waiting service reply to continue
Good afternoon, guys, I have two methods, how do I wait for a method that is calling an external service to respond to continue the execution of the method that called this method? Example:…
-
0
votes1
answer1321
viewsAngular 5 , Mapping an array of Objects within another array of Objects
Well I’m trying to encapsulate my objects. The first Object it maps the first JSON array. export interface PraticarObject { id_assunto: number; nome_assunto: string; qt_exercicios_concluidos:…
-
0
votes1
answer85
viewsCannot read Property 'token' of Undefined when receiving angular localstorage object
My login function keeps on localstorage a token returned from the api: localStorage.setItem('token', res.data.token); Right after logging in, I need to pass this token to another function, but I…
-
0
votes2
answers1947
viewsHow do I manipulate 3 Checkbox in Angular 2?
I have 3 Checkbox. 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">…