Most voted "angularjs" questions
This tag should be used when the question refers to some resource, information or problem related to the Angularjs framework. If so, only about Angular, there is a specific tag for this. Angularjs is an open-source Javascript framework. Its purpose is to facilitate the creation of browser-based applications in the Model-View-Controller (MVC) model, reducing the amount of code needed to create functional web applications.
Learn more…2,494 questions
Sort by count of
-
0
votes1
answer204
viewsRemove white space from ion-item
I have a list of items searched dynamically from the database <ion-list *ngFor="let associado of associados" class="card-pessoa" no-padding> <ion-item no-padding class="card-pessoa">…
-
0
votes1
answer514
viewsUse iframe Angularjs variable
I know that there is a question similar to mine, however the use was different and did not give the right example that it was mentioned. I need to take a variable from my database that has the url…
-
0
votes1
answer27
viewsFOR no localstorage does not work
Good night, you guys, The state of my LOCALSTORAGE is like this: When I try to do that: for (var post in $window.localStorage) { console.log(post); var value =…
-
0
votes1
answer53
viewsAngularjs and Image Picker - I can’t capture selector content
I am with the following doubt: If I click on the selector (in the box), I can capture the content of ng-model "firstJogo" and manipulate it in javascript as needed: <p>Escolha o jogo</p>…
-
0
votes0
answers34
viewsDisplays value as Angularjs filter
I made a page to query records and I have two fields search by name and search by start month and end month. Example: I would like to select the months and a div display the total value of that…
angularjsasked 6 years, 1 month ago Ricardo Chomicz 127 -
0
votes1
answer65
viewsHow do I bring a select of values defined in a Controller in angular.js?
I’m sorry, but I’m a layman and I’m starting! In HTML, I want to display the data defined in an angular controller class. As below: $scope.tiposCategorias = [ { id: 1, descricao:'Processados'}, {…
-
0
votes1
answer25
viewsPage loads before firebase data returns.
I am with a controller, where I search data firebase, but when doing this search the code suffers a delay and the page is loaded before with empty data before the query actually ends. My controller…
-
0
votes1
answer34
viewsFilter in search without displaying table when loading page
Hi. I have a question about the filters. I would like a filter similar to the code below, but without displaying the table with all values when loading the page for the first time. Only after the…
-
0
votes1
answer70
viewsAngularjs: Rendering components causes request loop
I am working on a legacy project, written in Angularjs 1.5.8 and ASP.NET 4.5. In order to upgrade the project Clientside to Angular, the first step I had to take was to compose the system. However,…
-
0
votes1
answer34
viewsUpdate tbody when selecting option in ng-options
I need to update a div after selecting the ng-option option. Controller.js $scope.prop = { "type": "select", "name": "Service", "value": "CDI", "values": [ "CDI", "IBOVESPA"] }; index.html <label…
-
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
votes0
answers69
viewsPassing character limit to text field
I have a combo "Person Type" with options (1 - Physical | 2 - Legal) and I need to limit the default character size to be filled in the text field "CPF/CNPJ". In fact, I need to validate the text…
-
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
votes1
answer130
viewsError publishing to Apple
Hi, I’m trying to send my first app to apple, but it’s giving a bit of a headache.. I already searched all my code, I did a total cleaning but I can not find anything on camera, and use, but I’m…
-
0
votes1
answer109
viewsUsing ng-style for a boolean variable inside an ng-repeat Angularjs
I have a listing this way : <tr md-row md-select="cali" md-select-id="name" md-auto-select ng-repeat="cali in vm.calibracoes"> <td md-cell>{{cali.idCalibracao}}</td> <td…
-
0
votes1
answer95
viewsHow to receive a directive within a component in Angularjs
This photo exemplifies what I wish to do: Link to TOTVS Angularjs documentation This is the excerpt from the form where I’m trying to do this. I’m getting the components required, number and…
angularjs angularjs-directives angularjs-scope angularjs-componentsasked 5 years, 11 months ago Rafael Zulianeli 1 -
0
votes0
answers24
views$rootScope.app is Undefined
People, I asked for help to rescue the value of a variable in a js file by the $rootScope that is in the controller of my application. My intention is to rescue in the page hmtl this attribute to be…
angularjsasked 5 years, 11 months ago Priscila.pcs 43 -
0
votes1
answer106
viewsPosition Absolute does not work on IOS
I’m trying to line up a button at the end of a ion-item Man css of the button is: position: absolute !important; right: 0%; bottom: 0; and the result on Android is: But in the IOS the button simply…
-
0
votes1
answer886
viewsGrab id of the button clicked on Angular
I have several buttons with the same function and try to get the last id clicked, but always only one id comes. HTML: <div class="container"> <div class="row"> <div class="col-sm">…
-
0
votes2
answers143
viewsI want to Take the Result of a Select to use in Javascript
I’m wanting to take the option chosen by the person and simply print on the screen (it’s just the basics, to then do what I really want), so I don’t know how to do it. The part of the HTML code that…
-
0
votes1
answer79
viewsCan someone explain that code to me?
There is this following code and I’m very confused about it, even fiddling with javascript, I tried debugging but I put a console.log inside the function in the variable "T" and it printa truth,…
-
0
votes1
answer553
viewsScroll problem when focusing on an input (Ionic)
Guys, every time I test my app on my phone, and I click on the input you have, the keyboard is covering the whole screen and I can’t see what is being typed in the input, I’ve looked at my css and I…
-
0
votes1
answer104
viewsHow to reload an Angularjs Directive in the Controller?
Personal greetings, I am developing an app with login and I am using Angularjs, but I have a cruel doubt when logging in the user. It turns out that I am using the user menu via Directive, when the…
-
0
votes1
answer36
viewsAdd multiple transcludes to a Directive Angularjs
I’m creating a menu component in Angular 1.5.8 where other components such as dropdowns, Search button and etc. Those templates shall not be added to the code of the Directive - they will be added…
javascript angularjs angularjs-directives componentsasked 5 years, 9 months ago Marcos Henrique 104 -
0
votes1
answer59
viewsCSS effect before server request
I wanted to put a CSS animation while the site is being requested on the server. So I found this code with Angular. app.config(['$httpProvider', function ($httpProvider) { // Criando um…
-
0
votes2
answers2470
viewsError: push is not a Function
As I click the button it should add what is written in the fields in the table, but it of the error: Typeerror: $Scope.listClient.push is not a Function My controller:…
angularjsasked 5 years, 9 months ago Rafaela Cordeiro 87 -
0
votes2
answers184
viewsError: Typeerror: $http.get(...). Success is not a Function
I’m calling an Amazon service and is giving problem, follow code: Controller: app.controller('MainController', ['$scope', 'emails', function($scope, emails) { emails.success(function(data) {…
-
0
votes2
answers163
viewsInclude files in the codeigniter view
Hello, I’m trying to call a js/css file that is inside application/views/app.js, but I’m trying to include it within a view that opposes in the same folder application/views/login.php but a 403…
-
0
votes1
answer81
viewsFilter Map and Reduce
I have the following line of code: $scope.listDeColaboradoresObject.forEach(item => { item.listNmAssunto = $scope.relatorioTotalMensagensRespondidasColab .filter(x => x.nmUsuario ==…
-
0
votes1
answer65
viewsCalculating values in column
I have a doubt on how to calculate values that are in column, I was able to calculate the values in line, however, in columns I am not able, the need is to create subtotals of each column I have if…
-
0
votes1
answer65
viewsProblem mounting server Angularjs
Good afternoon guys, I’m having trouble trying while running an angular js project, because I only worked with angular 2+, at the time I run an npm start the following error occurs: npm ERR! Missing…
angularjsasked 5 years, 9 months ago Pedro Teixeira 171 -
0
votes1
answer38
viewsHow not to show element that has no content using Angular js?
I have to list to the user a message within a panel depending on the "Radio" that face will click to show a message. has a radio as YES and another as NO. If he clicks yes, he will have to show you…
-
0
votes1
answer75
viewslocate button in the preset/angle
Hello! I have tried the location (Protractor) of the "New" button of the ways below, has some orientation of how to do? <button class="btn btn-link float-right" data-placement="top" type="button"…
-
0
votes1
answer378
viewsTypeerror: Cannot read Property 'map' of Undefined
I do not know why this error occurs: Typeerror: Cannot read Property 'map' of Undefined Follows code: var app = angular.module('Teste'); app.controller('testeController', ['$scope', '$http',…
-
0
votes1
answer53
viewsinject dependency into a link function in a Directive Angularjs?
Personal I am making a Directive(component) that needs a dependency $compile, I am doing the operations on the directive link and need the $compile inside of it only that I am not managing to inject…
-
0
votes1
answer33
viewsHow to list values using ng-repeat using Angularjs and Jsonresult ASP.NET MVC?
Good Friends! I am working on a MVC application that returns JSON to an Angularjs controller, it turns out that these values are unit values and lists. And when rendering in the view, only unit…
-
0
votes1
answer27
viewsHow to reposition an image, through a matrix with fabricjs?
I have the following matrix for an image: var Matrix = [0.172549, 0, 0.172549, 0, 0]; I would like to position this image with this matrix above, and within the scale of a container: My code: var…
-
0
votes0
answers67
viewsPage shows Angular error
I took a page for maintenance and noticed the following error: I suspect that the angular directories must be incorrect, but even when changing them and putting the link caught on the internet (CDN)…
-
0
votes1
answer31
viewsOwlcarousel crash display when Nav back to page
I have an Owl Carousel implemented in my website homepage, and it Works fine when it’s the first acccess to the page, but when I navigate to Another page on my website and then click the button to…
-
0
votes2
answers160
viewsHide element when selected by another Select
I have two Select’s that have the same list of people. When I select "Maria" from select A this option should be hidden from select B, since we cannot select the same person from both selects.…
-
0
votes3
answers227
viewsHow to queue for Promises in Javascript?
I would like to know the best way to make a row of Promises in Javascript, so that the incoming Promise only runs after the previous Promise resolution. Example: var queue = [Promise1, Promise2];…
-
0
votes1
answer33
viewsError adding ternary condition within a ui-sref
I’m making a link on a page that will redirect according to the object data. So I made a ternary condition, but it’s giving a syntax error and I can’t see what’s wrong: My html: <a…
-
0
votes1
answer32
viewsWebdrivererror when running E2E tests with Protractor/Selenium
Error occurring below when running E2E test specs, no action previously done that may have caused the error. That is the mistake: [14:20:03] I/testLogger - PID: 16221 Specs:…
-
0
votes1
answer36
viewsWhy isn’t $routeParams bringing the id?
I’m using $routeParams.idunidade to bring from another screen the id of a unit but the idunidade is always "Undefined" and I can’t understand why, because I’ve used it and it always worked! Will the…
angularjsasked 5 years, 4 months ago GustavoSevero 2,567 -
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…
-
0
votes1
answer286
viewshow do you call the angular click event using the datatable?
I am having call this function to edit my record but the function is not called using the (click) angle. HTLM:: <sa-datatable [options]="options" paginationLength="true" tableClass="table…
-
0
votes1
answer109
viewsHow to download an image from Angularjs
I’m creating a feature similar to the email attachment, in which we attach files but if we want to view it to confirm the files to be sent we download. That’s where I’m having the problem function…
-
0
votes1
answer40
viewsHow to ensure completion of an angular.js process
I want to ask for help in this process, I have an application in angular.js that I need to issue all the labels of a process, and then all the labels of a second process. The problem is that it is…
-
0
votes1
answer110
viewsHow to call ng-Blur query function before printing from PDF in Angularjs
I have a field CPF (text) where I consult a function consultaNome for return the NAME of CPF and I have the button 'Generate PDF' where I need to print out the CPF and NAME that was returned. I’m…
-
0
votes1
answer109
viewsHOW TO SAVE A SUBSCRIBE RETURN IN A VARIABLE?
My basic code: ngOnInit() { const today = Date.now() this._schedulesService.getSchedules().subscribe( (res: SchedulesModel[]) => { this.schedulesToday = res this.schedulesToday.filter((schedule:…