Most voted "angular-6" questions
Use this tag for specific questions about version 6 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…118 questions
Sort by count of
-
0
votes1
answer527
views"WARNING in Duplicated path in loadChildren Detected During a rebuild." duplicated paths
What could be wrong to lead to warn? WARNING in Duplicated path in loadChildren detected during a rebuild. We will take the latest version detected and override it to save rebuild time. You should…
-
0
votes1
answer89
viewsError while trying to load a mat-table with angular 6
Starting with Angular 6. When trying to create a table, based on an example I picked up, I started having the following problem. I added in my module main, these lines: import { MatInputModule,…
-
0
votes2
answers146
viewsHow to catch the return of a service within a @Component with angular 6
I made this table(omit the TR and TD’s). <table mat-table [dataSource] = "dataSource" class="mat-elevation-z8"> If I create a failed array, it works. Below my component(commented lines, work,…
-
0
votes1
answer112
viewsStarta button on the side and not under the mat-table
I have this html <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> <div> <table mat-table [dataSource] = "dataSource"…
-
0
votes0
answers65
viewsAngular 6 - Portal
I need to create a portal style application in Angular 6. This application should be able to include other applications. Explaining better: I have 3 applications: APP1 APP2 PORTAL Within the Portal…
-
0
votes1
answer1105
viewsRun an angular project 6 from github
I uploaded a pro github project,I believe that because it is too big the file has been "cut" some files, consequently when I download again (using git clone) the code does not run on the server.…
-
0
votes1
answer464
viewsWhen loading list, mat-select should be already filled
This is my html <div class="container"> <div class="row"> <div class="col-md-12"> <table class="table table-striped table-bordered"> <caption> Lista de Aplicabilidades…
-
0
votes1
answer103
viewsWhen I give a post in the form I get this error: Typeerror: _co.postCreateTypeFields is not a Function
This is my html: <div class="container"> <form [formGroup]="form" (ngSubmit)="postCreateTypeFields()" style="width:400px; margin: 0 auto;"> <h1>Types Fields</h1> <div…
-
0
votes1
answer1137
viewsEdit table at Angular 6
I have had some problems, because I don’t know Angular 6 well. I have this table: <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <table class="table…
-
0
votes1
answer48
viewsAngular Treatment of JSON
I would like to know if it is necessary to process JSON to use two-way databinding in HTML. I was able to read it without the treatment, but I don’t know if this is the right way. Follows the code:…
-
0
votes1
answer3027
viewsHow to add localstorage in Typescript (Angular 6)
I have a code in Typescript (angular 6) in which I for educational reasons, want to know how to save various message variables with the following data in cache: adicionarMensagem(preparacao:…
-
0
votes1
answer352
viewsError in mat-select when trying to choose an item
Error: ngModel cannot be used to Register form Controls with a Parent formGroup Directive. Try using formGroup’s Partner Directive "formControlName" Instead. Example: My HTML <div…
-
0
votes0
answers38
viewsMenu option back to login
I’m trying to use Adminlte treeview in the system menu, but every time I click on the menu item it goes back to login. For example: When I click on Dashboard, Graphics or Management, it goes back to…
-
0
votes0
answers129
viewsAngular 2x application configuration error
I did some ***** in the advice that Visual Studio Code gives in some configuration file and what was working perfectly, now when running the ng serve gives the error to follow: ERROR in…
-
0
votes2
answers105
viewsHow to make a console.log on the map?
Note the algorithm in Angular findToOptions(searchValue: string): Observable<any[]> { return this.findAll(new PageParameters(15, 0, 'id,asc'), this.getSearch(searchValue),…
-
0
votes0
answers18
viewsAngular Deploy 7 Git Server
would like to be able to send a deploy in Angular 7 to a Digitalocean server, through the git commands The architecture of my project is organized this way (folders) Meu-projeto .git dist…
angular-6asked 5 years, 9 months ago Rafael Moura 165 -
0
votes1
answer39
viewsHow not to allow the zoom of the phone in the App?
Good morning, you guys, I need to not let the user’s mobile zoom affect my App. I used the viewreport components: content="width=device-width, height=device-height, minimum-scale=1, maximum-scale=1,…
-
0
votes1
answer972
viewsHow to add data to the JSON file in Angular 6
I have a code that sends and receives messages. I can 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…
-
0
votes1
answer402
viewsHow to limit in Angular the number of characters in the text by inserting a "Read more" button to see the rest?
To limit in Angular the amount of characters in the text by inserting a "Read more" button to see the rest and when you see everything, the "see more" button will become the "see less" button". I…
-
0
votes0
answers85
viewsGuys I’m in need of help, I’m not getting ngModel to work at angular 6
Follow the error and just below the code: CadastroRestaurantComponent.html:6 ERROR TypeError: `Cannot read property 'name' of undefined` at Object.eval [as updateDirectives]…
angular-6asked 6 years, 2 months ago Lucas Vieira 11 -
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">…
-
0
votes1
answer56
viewsSearch by ngFor date range
I need help from someone, I looked around a lot more I couldn’t find. I have two Datastart and Datafim fields and I need to filter on ngFor to filter the selected dates. Example *ngFor="Let order of…
-
0
votes1
answer79
viewsUse parent component function in angular child component
I’ve been trying to fire a function of a parent component into a child component and I can’t, someone’s done something like?
-
0
votes0
answers49
viewsAngular 9 datatables
Good afternoon, I’m using the datatable of the link below: https://l-lin.github.io/angular-datatables/#/Welcome The only problem is to update the grid value after the update, follow image: Thank you…
-
0
votes1
answer1462
viewsHow to make a function wait another function that has an subscribe with observable in?
Next, I have a function that generates a PDF, this function takes a mounted array and mounts a page. After that she requests the next page for the backend through a function with a subscribe. My…
-
0
votes1
answer45
viewsngFor generating many calls
I have an array that contains 40 positions. By making an ngFor using this array, I create a series of components within this *ngFor. The problem is, it’s killing the performance. Debugging, and…
-
0
votes1
answer1608
viewsInterface dependency injection in Typescript - Angular 6
I am doing the front end of a project using Angular 6, but I am beginner in both Angular and Typescript and I am trying to use the interfaces of Typescript as in Java, injecting them to use the…
-
0
votes1
answer3946
viewsHow to Make Ascents with the Sidenav Component of Angular Material Design
I made a menu using the Sidenav of Angular Material Design in this way: <mat-sidenav-container class="sidenav-container"> <mat-sidenav #drawer class="sidenav" fixedInViewport="true"…
-
0
votes1
answer263
viewsConsole error: Can’t bind to 'formGroup' Since it isn’t a known Property of 'form'
I’m using Angular 6 I’m creating a form: The form: <app-layout> <div class="card"> <div class="card-header"> Novo Post </div> <div class="card-body"> <form…
-
0
votes1
answer186
viewsAngular 5 to 6 rxjs migration
Well I’m trying to migrate a new project from Angular 5 to Angular 6, but I’m having some difficulty with the way it changed the functions of rxjs, I’m posting below how I did it in Angular 5 and it…
-
0
votes0
answers107
viewsWhen rendering an application in Angular 6 the layout is breaking
I did a job with Angular 6 in a company and I didn’t touch it anymore. I went back to study to actually learn and started with a project I picked up on the internet here. Well, I followed the…
-
0
votes1
answer834
viewsHow to Get Specific JSON Data with Angular 2x?
I have an answer that I turn into JSON this way: const resposta = JSON.stringify(response); console.log(resposta); Give me the feedback on console.log this way: [{"nome":"Ramos…
-
0
votes0
answers28
viewsHow to access data contained in two Collections at the angular?
I have a JSON that has the data of the person and another Collection with "countsJogadors", how do I make my listing also show what is in "contasjogadors"? My JSON: { "nome": "Ramos Janones",…
-
0
votes1
answer70
viewsFunction running before my request response
In a modal I have a form with data that can be edited. If the user confirms the update the data is updated and then it will be forwarding the new page. But on this new page the information that…
-
0
votes4
answers2324
viewsAngular 7 - Popular object on return of API service. httpClient
Thanks in advance for your attention. I am having difficulty popular an object list returned from an API in Angular 7. My service class is returning the service data, but I can’t get popular in my…
typescript services angular-6 angularjs-services httpclientasked 5 years, 11 months ago Bruno Leite 105 -
0
votes1
answer123
viewsHow to inspect an application in Angular?
Not long ago I joined a project, they use Spring Boot with Angular. The project module that I was responsible for is the personal movement module as you can see below; The application works as…
-
0
votes1
answer33
viewsRepeated ID on objects in my array
I’m trying to assign an ID to each object in my array, but when I have two or more similar objects, they end up getting the same ID. I’ve tried to do indexOf() and also did not work.…
-
0
votes1
answer226
viewsFirebase: signInWithEmailAndPassword failed: Second argument "password" must be a Valid string
I’m getting a re-turn null for my second parameter along with signInWithEmailAndPassword method. This error inhibiting my authentication. public autenticar(email: string, senha: string): void {…
-
0
votes1
answer336
viewsAngular: persist get return in function/variable
booksList: Book[]; listById(id: number): Book{ this.http.get<Book>(`${url}/list/id=${id}`) .subscribe((response)=> { this.book = response; console.log(this.book); //aqui existe o livro…
-
0
votes1
answer50
viewsAngular: error in model with object listing
I have these 2 models, and the book has a list of language-like objects. Model book import { Language} from "./language"; export class Book { id: number; name: string; language:…
-
0
votes1
answer1056
viewsAngular 7 autocomplete with http
I have in my project a field that I need to use the autocomplete. But it’s not working. Could someone help me? Component filteredCostCenter: Observable<CentroCusto[]>; ngOnInit() {…
-
0
votes1
answer41
viewsSlimselect + Angular 6
Hi, this is the first time I use Slimselect and I’m having trouble making it work. I created a test-only Component called 'Addaccount' and in its 'ngOnInit()' method, I put what the Slimselect…
-
0
votes1
answer327
viewsAngular 7 error: ERROR Typeerror: jit_nodeValue_5(...) is not a Function
I have a simple page with 3 modals, which are opened by clicking buttons to request yes or no to perform actions. In one of them I only have this error, by clicking the yes button of the…
-
0
votes0
answers88
viewsEventemmiter does not work when the button is clicked
I have a screen on my system that, when clicking on a button, opens a modal window. On this screen I have the following html: info-athlete.component.html <foot-play-edit-perfil-modal…
-
0
votes1
answer1608
viewsPass more than one parameter on the Angular route
I have an application that uses angular V6, I have a route system where I can pass a parameter, in order to access another component, an id for example, however, I need to pass two parameters in…
-
0
votes0
answers65
viewsHow to iterate variable at angular every time a certain condition is met?
<div *ngFor="let elemento of team.elementos" class="{{elemento.colunas}}"> <div *ngIf="(elemento.dataPublicacao < hoje) && (elemento.dataValidade > hoje)">…
-
0
votes0
answers574
viewsAngular 6 ng test error Cannot match any Routes
Error while rotating ng test. { "message": "An error was thrown in afterAll\nUncaught Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'home'\nError: Cannot match any…
-
0
votes1
answer609
viewsChange form depending on radio button - Angular 2+
I have 3 radio Buttons, when I click on each one should appear a different fomulário. I looked for some examples, but what I found are only two options. Follow the code I have at the moment <div…
javascript angular typescript javascript-events angular-6asked 5 years, 6 months ago Guilherme Lucas 133 -
0
votes1
answer134
viewsProblem in image size validation
In my application I make a preview of the image, this part is ok, but the client wants to validate the dimensions before the upload. At first it would also be ok, if it were that in a few moments…
-
0
votes1
answer2425
viewsCannot read Property 'data' of Undefined
I’m getting the following sponse: {"content":[{"id":"33","dsProjeto":"EXT-016370-00002","nomeProjeto":"Brazil IT…