Most voted "angular" questions
Angular is a framework created by Google for the development of web applications. Use this tag for questions about syntax, errors, doubts, among others. Not specific to a version. For Angularjs-related issues (1.X) use the Angularjs tag.
Learn more…2,063 questions
Sort by count of
-
0
votes1
answer50
viewsGitlab-CI.yml does not share ratings
I’m trying to automate a build using gitlab-ci.yml, but I’m having some problems. Apparently each Stage creates a new container of the image I chose. I guess I’m new to this CI/CD world so maybe the…
-
0
votes1
answer91
viewsngFor duplicating values when changing and returning page
I made an api that generates only one value, already in the application that uses Ionic and Angular. When entering the Main page the unique value appears there, but when I go to a secondary page and…
-
0
votes1
answer106
viewsClear options field after selected value
I started recently with WEB development and have studied ANGULAR to deal with some cases in my work. I have five select options that lists through an api some records based on my return {} ,…
-
0
votes1
answer26
viewsInput capture of an angled form
I am trying to create an object containing all the inputs of a form so that if any are checked, others become disable. Is there any way document.forms['formParada'].elements['checkboxTipoParada'];…
-
0
votes1
answer66
viewsURL replicating path each time I hit F5
I climbed an angled design to the FTP, the problem is that every time I squeeze F5 he repeats the relative path. So when the access starts at www.mysite.com.br/one/auth/login Then F5 grip it goes…
-
0
votes1
answer522
viewsHow to dropdown menu in Angular with Materialize CSS?
I was doing a small project with Angular (V8.2.5) and Materialize (materialize-css v1.0.0), and decided at a certain point to insert a dropdown menu into a header component. Following the…
-
0
votes1
answer50
viewsAction when finalizing the request at the angle
I have a loading that is activated at the beginning of my request and I need to stop it at the end of the request. I tried something like: onSubmit() { this.submitted = true; if…
angularasked 5 years, 2 months ago veroneseComS 2,752 -
0
votes1
answer355
viewsHow to place a spinner on the button according to the service. Angular 2+
How do I put a spinner in a button and this spinner will disappear only when the data is sent.... In case the data is not sent or give some problem in the server the spinner is there loading. I am a…
-
0
votes1
answer84
viewsAngular - transfer components from one system to another
Good afternoon. I have a Component that contains some child components, I have another component containing other child components. I want to reverse the children of one for the other, but I want…
angularasked 5 years, 2 months ago Reginaldo Pedro de Lima 1 -
0
votes1
answer124
viewsInsert button in front of a pagination
I created a pagination so that the return of my API would be better performing at the moment it is rendered on the screen, the question of adjusting everything ok, however, on this screen I work…
-
0
votes1
answer97
viewsDelete records from selected checkboxes with angular
I need to create a function that deletes records according to the checkbox(s) selected(s). I was able to select these Ids for each checkbox and include them in the array "Selected" through function…
-
0
votes2
answers74
viewsAlign table data in different fields
I am working with a card that will work to return data like (today, current month, day yesterday and anyway), but I would like to leave the day equal to image, I could not using tables, follows the…
-
0
votes1
answer674
viewsHow to process JSON that has an object array as property with Observable (Angularjs)?
I have an API that returns objects JSON as follows: { "data": [ { "nome": "objeto1" }, { "nome": "objeto2" }, ] } However, when receiving the objects in the service, I can’t just pick up the…
-
0
votes1
answer82
viewsAssign the same value to internal and external Formcontrol using Controlvalueaccessor with Reactiveforms
I have a directive to put the value treated by Decimalpipe in the input value without changing the Formcontrol value, or better yet, I make a change in Formcontrol without assigning it to the input.…
angularasked 5 years, 1 month ago Gabriel Tadra Mainginski 707 -
0
votes1
answer699
viewsProxy error npm install
I installed Nodejs and Angular, went to the prompty and tried to run npm install in my project folder, however, even after I set up the proxy with: npm config set proxy…
-
0
votes1
answer76
viewsError when integrating template to Angular 7
Hello, I have a problem: I am integrating a template that works on jQuery, css3 and Html5. I added it to node_modules and referenced the scripts in angular.json. The template css is working…
-
0
votes3
answers617
viewsAngular 8 - Problem with html accents
I have an array in my component that is accented with html code. text=[ 'DRENAGEM AUTÓGENA','BAG SQUEEZING','RESPIRAÇÃO…
-
0
votes2
answers699
viewsAngular (8) form validation message
I’m working on an Input that needs to have a message : Type at least 10 characters that message should change with each character that is typed So, when you type: Alex the message should be: Type at…
-
0
votes1
answer28
viewsDisabled error ao utilizar junto com formcontrolName: The 'value' should be a Valid Javascript Date
I need a datepicker disabled, he owns a formControlName because its value is changed according to the requests: <kendo-datepicker disabled…
-
0
votes0
answers235
views(Ionic 5) Authentication using Json-Server
Good morning, I would like a Login (Authentication) guidance using Json-Server (FAKE API). Json-Server supports this feature? I was following some lessons in Alura about Ionic and Angular, and they…
-
0
votes1
answer485
viewsHow to send a token to Header Authorization (Node/Ionic/Angular)
Good afternoon, I would like some guidance on how I could take the token being generated in my back-end (Nodejs + Express + Mongodb API) and save it in Header Authorization when the user logs in to…
-
0
votes1
answer516
viewsIonic 4 - Updating a component with modal data?
I’m developing an online ordering app using Ionic 4. This app has a benefits system. When the user opens the shopping cart he can open a modal where your available benefits are listed. When the user…
-
0
votes0
answers45
viewsERROR in src/app/tab1/tab1.page.ts(17,8): error TS2339: Property 'map' does not exist on type
I’m creating an Ionic app for a project and need to integrate a map, in addition to the camera and gallery functionality that should save the image and user geolocation. I’m having a problem running…
-
0
votes1
answer91
viewsSave data from an offline input
Good afternoon, I’m trying to save the data (with Localstorage) from an input into a variable, but I’m not getting it right. The page itself is an option to Save user data. Follow the . html…
-
0
votes1
answer76
viewsHow to check if there is an input of an array within another to avoid duplicating?
Good morning, that’s my first question around here I’m making an angled app using the google Books api and I need help.. I have a button that adds indices from the book array to the bookmark array,…
-
0
votes1
answer111
viewsHow to initialize two or more different date selectors in a form with Materialize?
After initializing a datepicker of Materialize CSS successfully, I realized I would need two datepickers in the same form. The problem is that I can only initialize one datepicker: HTML: <form…
-
0
votes1
answer43
viewsCapture Touchevent from the device to use it on the screen
I have the following Javascript code, but it does not capture touch commands, anyone knows why? If I’m using some incorrect syntax or something? private capturarEventoTouch(componente:…
-
0
votes1
answer39
viewsAngular - how to pass given to component differently when clicking on different buttons?
I have a modal with a form on a page with a list of registered items: <div class="collection"> <div class="collection-item row" *ngFor="let data of data$ | async"> <div class="col…
-
0
votes1
answer41
viewsHow to keep the value of the variable inside the is using promise?
I got the following for: for(var i = 0; i < $scope.d.sections.length; i++) { if($scope.d.sections[i].uid) { if ($scope.d.sections[i].title != $scope.d.sections[i].oldTitle) { var uid =…
-
0
votes1
answer551
viewsHow to use checkbox with ngFor?
I am starting in Angular in my high school and need to do a project of a medical site. In one of the parts I have the following template: <div class="container mt-5 mb-5"> <h3>Qual a…
-
0
votes0
answers79
viewsIonic 4- Receive variable update with Behaviorsubject
In the home I have a list of products that click opens the product modal with a button to add to cart. When you add the quantity appears next to the icon. I want to close this modal on app. be…
-
0
votes2
answers373
viewsControl div from a checked checkbox
I have a checkbox list (*ngFor): <div *ngFor="let item of listaProcesso"> <input type="checkbox" ng-model="check" (ngModelChange)="expression && expression[item.name]= $event ? true…
-
0
votes1
answer31
viewsOpen DIST Urls
I’m having a problem when I build the project with Electron to call an UPDATE screen of the project in Angular since dist do has index.html, in the development mode managed to call quiet.…
-
0
votes1
answer804
viewscore.js:9110 ERROR Typeerror: Cannot read Property 'onDidDismiss' of Undefined
When I log in to an Ionic4 system Loading is called on the screen however, the same Dismiss is giving the error: core.js:9110 ERROR TypeError: Cannot read property 'onDidDismiss' of undefined It…
-
0
votes1
answer403
viewsng if to select field value select option
I have this code in angular: <div class="form-group"> <label for="sexo">Sexo</label> <select type="text" class="form-control" id="emailId" required [(ngModel)]="user.sexo"…
angularasked 5 years ago alexjosesilva 3,119 -
0
votes1
answer39
viewsStaticinjectorerror when using Typeahead(ngx-bootstrap)
I need to use typeahead in a Component, let’s call it component1. Typeahead is also being imported into another Component(let’s call component2) which is used within this same component1 as a modal,…
-
0
votes1
answer1281
viewsFormat date in Angular?
I am developing a form in which birth date is required: <div class="form-group"> <label for="name">Data Nascimento</label> <input type="text" placeholder="Insira Data"…
-
0
votes1
answer458
viewsHow to catch the length of a *ngFor?
I own a property elemento$ inside my component, whose type is Observable<Objeto[]>. I used the directive *ngFor to access the data individually and show them on the screen: <ul> <li…
angularasked 5 years ago Arthur Siqueira 1,609 -
0
votes1
answer121
viewsMultiselect with search filter
I have a problem where I have a table that has 12,000 type records and I need to do a multi-select where the options appear according to the multiselect search filter. The intention is to facilitate…
-
0
votes1
answer84
viewsDependency injection problems in Angular unit tests
I’m trying to perform unit tests in Angular, but I have some problems with injection dependencies in the services. In the application there are several services that depend on each other, for…
angular unit-testing dependency-injection jasmine karmaasked 4 years, 11 months ago Mauricio Hartmann 131 -
0
votes1
answer100
viewsmat-table filter working only on the first character
Hello I’m having a problem configuring a search filter in the mat-table (angular 2.x). The table is being populated through a request as per: getAllLabs() { this.param =…
-
0
votes1
answer82
viewsAngular index problems 8 with Ks-modal-gallery
I’m performing a series of upload photos that are rendered on screen and displayed in Angular 8 index issues with Ks-modal-gallery... It turns out that when I performed the Component loading they…
-
0
votes1
answer405
viewsClear input value at material angle
I have a input in Angular Material: <mat-form-field class="width-layout p-0 col-xs-12 col-sm-4 col-md-4 col-lg-4" [class.mat-form-field-invalid]="errorValue" appearance="outline">…
-
0
votes1
answer133
viewsCircular Dependency with Providedin
I’m studying the Services of Angular and I came across two modes to make the Dependency injection, which are: 1) Use the providers of the module 2) Use the providedIn of the new updates of Angular…
angularasked 4 years, 11 months ago user148754 -
0
votes1
answer250
viewsAngular: ngModel is not being recognized
I’m using ngModel to insert value into variable through input, but the same is not being recognized, if I do with isolated values it returns nothing, if I try with object it returns Undefined Html…
-
0
votes1
answer2802
viewsUsing Promise.resolve(). then() correctly Error: Uncaught (in Promise): Typeerror: Cannot read Property
Hi, I have the following code: export class Page { constructor(public modalController: ModalController) { } private async openModal(value) { const modal = await this.modalController.create({…
-
0
votes2
answers217
viewsProblem passing Angular time to C# Core
The problem is to pass an hour value through an observable method (Angular 8) to a controller (C# Core 2.2), at the time of sending the data is correct: However, when I receive the values, it is…
-
0
votes1
answer102
viewsCheckbox with checked property does not return me any value
I have a code where the person must select a modality of the academy, for example, the martial arts plan, the person must select which fight she wants. So I made the following code: <div…
-
0
votes1
answer212
viewsProblem defining functions in Angular models
I’m creating a little evaluation project, and I ran into a problem. I created a function in a checkin model that exists in my application, however, I cannot call it anywhere... Note. Instead of the…
-
0
votes0
answers81
viewsHow to force element state of the HTML template?
Using the CSS framework Materialize, I came across the following situation. I own some fields <input> with <label> as the example: <label for="name">Nome</label> <input…