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
-
1
votes1
answer62
viewsEvaluating the $http response from Factory to the controller in Angularjs
I created a Factory to carry out the operations CRUD in a REST API using the $http service to make a user control. Factory //Listar..Recuperar ..Inserir ...Editar..{...} usuarioService.Excluir =…
-
1
votes1
answer481
viewsSort rows and columns replicated with angular
I need help sorting the buttons I’m generating with angular. I am using "ng-repeat" and is generating the 8 buttons correctly but they are getting out of order I need. Follow the code and output…
-
1
votes0
answers70
viewsAngular 2 Xmlhttprequest cannot load
I am trying to make a POST request for an API and am getting this error: Xmlhttprequest cannot load http://*. Response for preflight has invalid HTTP status code 400 However, when I make a GET…
-
1
votes1
answer1833
viewsHow to get the ng-value value of checkbox in Angularjs/Ionic
Imagine a traditional application in Angularjs <!DOCTYPE html> <html ng-app> <head> <script type="text/javascript"…
-
1
votes3
answers710
viewsRead json via http by Angularjs
I am trying to read with an Angularjs/Phonegap application an HTTPS address that gives me a JSON (https://gestormegaclube.com.br/api/app/v1/parceiros). I’m getting this mistake: Xmlhttprequest…
-
1
votes1
answer148
viewsFirst directive at the angle
I’m trying to make a simple directive on Angling for example. This is a button that takes the class name and text as follows: var app = angular.module('app', []) .controller('appController',…
angularjsasked 7 years, 2 months ago Gabriel Augusto 530 -
1
votes0
answers61
viewsPost Error - Payload (Node.js)
Today when I went to perform the post of a larger base 64 is returning it from my server. When uploading a smaller image it sends smoothly, I tried using some solutions limiting the server to 50mb…
-
1
votes0
answers37
viewsCreate your own scope with each ng-repeat iteration
I’m trying to make a table of values to be filled and stored, row by row. However, even after filling and storing the first line, by changing the value of a select, the select of all lines above the…
angularjsasked 7 years, 2 months ago Gabriel Augusto 530 -
1
votes1
answer44
viewsIs it possible to use the W3C validator for websites built in Angular.JS?
I have a project, which was done in Angular.JS. When launching the project in W3C validator i get several mistakes that I wouldn’t have to deal with. For example: Attribute Errors: ng-controller |…
-
1
votes1
answer49
viewsUi.Router loads/imports JS files, but buttons lose functionality
The template Smartadmin uses lazyScript to import the JS files, it works, it matters all right, but when I navigate between the pages the Ui buttons, stop working. angular.module('app.analytics',…
-
1
votes0
answers55
viewsAngular4 popup not working?
Guys, I have a problem at angle 4. I’m trying to use the component ng2-opd-popup. It installs right, but when I declare it in app.modules.ts it returns the following error: ERROR in Error…
-
1
votes1
answer515
viewsProblem with ng-checked Angularjs!
Person have an input from type="radio" when clicked calls a function and fills a select.. but this only happens when I click the input.. I need it to load automatically on the page loading, I have…
-
1
votes1
answer105
views$routeProvider does not work - Angularjs
I’m trying to do something simple on Plunker which is to load the contents of home html. in index.html, however, is giving error. Before it was not working even this line of code(when put the…
-
1
votes1
answer383
viewsBlock navigation until token login is validated, using Spring, Angularjs and Javascript
I have a question.. I have implemented a login validation using JWT. It works all right, generates the token within the requests. However, on the login page, if in the URL I put the next page the…
javascript angularjs spring spring-mvc spring-bootasked 7 years, 2 months ago Eduardo Krakhecke 935 -
1
votes3
answers312
viewsValidate three fields
I have three fields and I have to validate sending the message ng-mensage of the first field whenever a value is exchanged and preventing the form from being submitted. The sum of the field número 2…
-
1
votes1
answer118
viewsAngle variable scope not updating
I have a bizarre problem with a variable that I created in HTML with Angularjs. I even tried to instantiate it in Controller to see if that was the problem but no. I have a button that on ng-click i…
-
1
votes0
answers338
viewsHow to use $rootScope. $on?
I don’t know how to set $rootScope. $on on my unit test. Whenever I invoke a function it gives me the following error: Typeerror: Attempted to assign to readonly Property. The test is being done as…
-
1
votes1
answer50
viewsWhy does variable increment function not work in Angularjs? Am I not accessing the variable correctly?
Hello. I need to change the value of a variable in Angularjs but I am finding the following problem: "Cannot set Property 'quantity' of Undefined". By clicking the button add, need the variable…
-
1
votes1
answer50
viewsController by file in angular js
(function () { 'use strict'; modulo .controller("CarregaCamposController", CarregaCamposController) .service("CarregaCamposService", CarregaCamposService); function CarregaCamposController($scope,…
-
1
votes1
answer538
viewsToggle using different ng-Style - Angularjs
I have a DIV with a style applied via ng-style (because some values are calculated in the controller). <div ng-repeat="i in getNumber(tiles) track by $index" ng-click="toggle = !toggle" // =>…
-
1
votes1
answer611
viewsIonic and Cordova build error: An error occurred while running Cordova build android --debug (Exit code 1):
I’m trying to compile my application, but it gives the following message:: > cordova build android --debug × Running command - failed! [ERROR] An error occurred while running cordova build…
-
1
votes1
answer470
viewsHow to pass the data from a checked checkbox to a modal?
I would like to know how to, when selecting a checkbox, take this data and launch it in a modal. In the code below, I want to take only the selected charters of a post and make appear only those…
-
1
votes0
answers80
viewsHow to solve a problem in Angularjs
I have the following function onLogin and within it I have a Promise being called on Loginservice how do I pass a unit test in this trial? function onLogin(e, args) { DebugMode &&…
-
1
votes1
answer1031
viewsLoad pages without refresh by clicking on the menu option
Good evening guys! I’m making a school system, in it will have access levels, menu for each access. I want to do the following, when I click on some option of the side menu, where it is written…
-
1
votes0
answers120
viewsAngularjs - Json in Localstorage does not update Array
I have a form in a View that should update the "color" property of an Array. This Array colors has 5 objects, each serving to set the color of an element of another View (so the option to use…
-
1
votes2
answers22
viewsHow to update a service collection by calling index a second service?
In the call of a service within my controller I carry little data, and as soon as this data is loaded, on the screen, behind should come the complete data for a particular filtered item, the…
-
1
votes0
answers241
viewsInsert Date input today - Angular
I’m maintaining an angular code, but I don’t know much about version 1 of this framework, how do I put today’s date in this input? someone has some idea? <input disabled type="text"…
-
1
votes1
answer333
viewsHow to perform . filter between arrays/objects Angularjs Javascript
I have the following two objects in Angularjs: $scope.listaDoCarrinho = [0: { id: "55", setor: "alimento", foto: "Produtos/Produto (55).jpg", descr: "Espaguete Renata", de: 15, … } 1: { id: "1000",…
-
1
votes1
answer159
viewsSort by id in Angularjs (Javascript)
I have an Angularjs object: $scope.listaDoCarrinho = [0: { id: "55", setor: "alimento", foto: "Produtos/Produto (55).jpg", descr: "Espaguete Renata", de: 15, … } 1: { id: "1000", setor: "biscoitos",…
-
1
votes2
answers703
viewsCalling Jquery function in an Angular controller
I have a file with functions jquery, and I need some functions that are on it to use within controllers at the angle, but always have JS error that functions are not defined. jquery…
-
1
votes0
answers208
viewsremove right column
Based on a script of the answer to that question: Dynamic table with angular Where it creates a dynamic table with angular, but it cannot exclude the right "cell", it always excludes the last…
-
1
votes0
answers731
viewsHow to fix error: Syntaxerror: JSON Parse error: Unexpected Identifier "Undefined"
I am getting the following error while trying to test my function: Syntaxerror: JSON Parse error: Unexpected Identifier "Undefined" The function is this: function onGetInstanceName(e, args) {…
-
1
votes1
answer21
viewsUsing return of an Angularjs method in another controllerJS
I have this method in my controllerJS script and would need to use the Response of this method in another controllerJs. How do I do ? app.controller("loginController", function($scope, $http,…
-
1
votes1
answer176
viewsbug ng-change with checkbox cheked
The bug is this, I have 2 checkboxes, by triggering the first the other is automatically marked, the second checkbox owns the tag ng-change calling a function in the controller, the problem is, when…
angularjsasked 7 years, 1 month ago HUGO PABLO 111 -
1
votes0
answers44
viewsSize of android font influencing in app navbar
I’m developing a hybrid app with Cordova using Angularjs with Materialize. It has a navbar with the button to open the side menu and the title of the page. Everything is working normal, but I use on…
-
1
votes0
answers24
viewsHow to do a query in a set by passing the character as a parameter in Javascript?
I have two distinct functions, one searches for an id(works) the other searches for a character letter(works). I need these two functions to act together,? When I select the id, which return the set…
-
1
votes0
answers24
viewsTo unite tables in Angularjs
I am in great need of a help from your knowledge. I am currently developing a web app for a restaurant with several modules. In the box module, in a <div> are displaying the requests that are…
-
1
votes1
answer268
viewsWorking with Data on ngInit
I have an input in my date form. Whenever the user modifies the date, it will be updated in Django and return another date. When the user enters the screen, I already bring the date in the following…
-
1
votes0
answers17
viewsHow do I Reload a directive with type A restriction?
I have an application in Angularjs that is with the following problem: Every time I access my view using: $Location.path('/my-url'); Directive with type 'A' restriction is simply not normally…
-
1
votes1
answer230
viewsHow do I trigger the Cancel event when I click out of the modal or Esc grip?
Problem with modal output $uibModal: var modalInstance = $uibModal.open({ animation: true, templateUrl: 'detalhes_leitura.html', controller: 'ModalController', size: size, backdrop:true,…
-
1
votes1
answer1095
viewsChartjs - Insert % at end of value in tooltip
I’m doing an angular Chart.js and need to place the percent ( % ) at the end of each tooltip where it shows the value on the chart. Follow code from my chart: Html: <canvas class="chart…
-
1
votes0
answers294
viewsGraphics using Chartjs, Mongodb and Angular
Good evening, I have the following model: var mongoose = require('mongoose'); module.exports = function() { var schema = mongoose.Schema({ nome: { type: String, required: true }, valor: { type:…
-
1
votes1
answer67
viewsDifficulties to find() in the schema/model Mongoose with req.params.
As the title says, I’m having trouble making a find() customized in Node model/schema, which links with Mongoose. My file correspondencia.js (model) below: var mongoose = require('mongoose'); var…
-
1
votes1
answer123
viewsProblem registering objects nested in Mongodb with Mongoose
I have the following collection: // SUSPEITOS - INICIO // const suspeitosSchema = new mongoose.Schema({ nome: { type: String }, sexo: { type: String }, corPele: { type: String }, altura: { type:…
-
1
votes2
answers124
viewsPHP Web Service with INNER JOIN
I am creating API for consumption in Ionic applications, but I’ve been working for 2 weeks on one of these api’s, where I link data in more than one table with Inner Join. I tried to do as in my php…
-
1
votes1
answer196
viewschecked="checked" does not work on ng-repeat
I’m working on a resume feature where basically the user will click on a respective radio button in which he has experience. The problem is that for a list it will come from back-end, that now she’s…
-
1
votes1
answer272
viewsAngularjs reading JSON positions
I have a JSON of states and cities as follows: { "estados": [ { "sigla": "AC", "nome": "Acre", "cidades": [ "Acrelândia", "Assis Brasil", "Brasiléia", "Bujari", "Capixaba", "Tarauacá", "Xapuri" ] },…
-
1
votes2
answers427
viewsHow to give a disabled in a form depending on which radio button to choose?
Good afternoon... I have the following radio Buttons: <input type="radio" name="radio1" value="entrada"> Entrada <input type="radio" name="radio1" value="saida"> Saida I also have the…
-
1
votes0
answers161
viewsAngular error
Request URL:http://127.0.0.1:8080/itcd-intranet-ui Request Method:GET Status Code:404 Not Found Remote Address:127.0.0.1:8080 Referrer Policy:no-referrer-when-downgrade view source…
-
1
votes1
answer458
viewsReturning Nan in function
Hello, I have a form with a radio button, if the option "Input" is chosen the form corresponding to the name "Output Value" is disabled and vice versa. I have a function that calculates the sum of…