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
-
4
votes2
answers98
viewsReturn ID of who has the shortest distance between coordinates
I have a function in ajax that returns all latitudes and longitudes of users registered in the database and gives me the shortest distance between the coordinates returned and a fixed coordinate in…
-
4
votes3
answers5591
viewsHow to Configure CORS correctly in Spring Boot?
First I’ll tell you what happens! I developed a simple Spring Boot project to show on screen a GRID having as Frond-End the Angular, the request of the java API is the port 8080 and Angular is port…
-
4
votes2
answers255
viewsIs it possible to use ng-model with contenteditable?
I need to use a divwith the attribute contenteditable and the result of that precise value put in a ng-model. I did so, but it seems not to be working as expected: <div contenteditable…
-
4
votes1
answer1238
viewsWhat is the difference between $Digest and $apply?
In Angularjs, we have two methods that execute the $watchers synchronously: $digest and $apply. I’d like to ask a few questions: What’s the difference between them? When I should wear one or the…
angularjsasked 6 years ago Wallace Maxters 102,340 -
4
votes2
answers2568
viewsHow to use Materialize with Angular?
I’m developing a project, but even importing all the CDN, the angular and the materialize, the materialize Javascript does not want to work together with the angular, there is some kind of conflict…
-
4
votes1
answer126
viewsAlternating states of a js application
INTRODUCTION I’m developing an app using Electron and google maps, I need to control the state of one of the windows, for example: the user clicks the button and from this moment on all click on the…
-
4
votes1
answer527
viewsCompile directives from the Controller
I have a table that is rendered dynamically when passing an array of data to it. I have access to the data of each "row" as follows: { "data": function (data, type, val, meta) { return "<div…
-
4
votes1
answer627
viewsHow to use Google Maps in Ionic to upload multiple locations
I’m using Ionic 1.3 and creating a Maps screen, this screen will feature a menu to select the specific destinations and another that is the maps with the location. Example of destination selection…
-
4
votes1
answer2009
viewsIs there any way to validate an input in Angularjs without using form?
I have a input which I wish to validate via Angularjs. However, this input is not within a form. So, when trying to access the form validation information, I was unsuccessful: <div…
-
4
votes3
answers327
viewsUpload a file with parameters in Silex with Angular-File-Upload
I am doing a work with Angular (version 1.5.8) and using Silex as Web Service. To send the file to the Web Service I am using Angular-File-Upload (version 1.5.1) and my Angular service is like this:…
angularjs upload angularjs-directives file-upload silexasked 8 years, 3 months ago Vinicius da Silva 131 -
4
votes1
answer240
viewsAngularjs google Chart with dynamic data
Example of how my code is http://plnkr.co/edit/hMnKAzjbkQzHWjL5p6KX?p=previewangularjs I receive the data from the webservice and organize this way. var avaliacoes_descTipo = []; var…
javascript angularjs google-charts angularjs-scopeasked 8 years, 3 months ago Erik Ieger Dobrychtop 153 -
4
votes1
answer790
viewsHow to add results from a list and display result in an Ionic popup?
I have an actiosheet that opens a popup: In the popup I want the total values of the list to be displayed. That is, I need to add / accumulate the values of the list and display the sum in the…
-
4
votes1
answer858
viewsIntegrating HTML + Node.js with Angular.js in "Real Time"
I’m having some problems automatically updating a code in Angular.js within my site. The integration is Node.js with HTML, integrating with Angular.js. But I always have to give F5 on the page for…
-
4
votes2
answers417
views"Cannot read Property" after an http.get request
Hello, all right? I have the following problem. I am making a Restful request (http.get) and am writing the received object into a variable within $Scope. However, when I try to access this variable…
-
4
votes1
answer213
viewsWhy is this call automatically inserted into the HTML body?
In an app I’m using the Javascript libraries: jQuery, Angular, Angular Material and Moment. Totaling I have the following calls in my file: <script src="vendor/jquery/jquery-3.1.1.js"…
-
4
votes1
answer697
viewsHow to make a list of categories with a completed and unfulfilled task counter?
Good evening, I’m as a doubt, I’m trying to make a dynamic task counter, that the tasks accomplished should be presented on another page. I have the following HTML of completed tasks: <!doctype…
-
4
votes4
answers2413
viewsGenerate angular pdf using javascript
I am trying to generate a pdf in my angular application and I have the following code in controller.js: function gerarPdf(){ restService.relatorio.save({ id: controller.contrato.id, folha:…
-
4
votes1
answer661
viewsGood practices for changing variables $Scope
Follow an example of code: Controller: $scope.filterText = {status: 'Todos', tipo: 'Todos'}; $scope.params = {page: 1, total: 10, orderBy: 'id', sort: 'desc', search: {status: '',tipo: ''}};…
angularjsasked 7 years, 10 months ago Fernando Zabin 707 -
4
votes3
answers10819
viewsConditional phone mask (with 8 or 9 digits) in Ui Mask. How to do?
I’m using the ui.mask to make the masks of inputs. I have a form whose field can receive both a value from a phone and a mobile phone. I have one currently a input similar to this: <input…
-
4
votes1
answer111
viewsGeolocation with Mobile Data
Well, I’m trying to make a project to be used in smartphones, more specifically in Android, but not this Developed on Android ! I’m just using HTML5 and CSS,all Responsive, and I want to put a…
-
4
votes3
answers1079
viewsProblem checking all checkboxes
How do I check input’s checkbox? You’re just unchecking. Follow the codes for assistance: HTML <div class="col-md-11"> <div style="text-align: right;" class="checkbox">…
-
4
votes1
answer312
viewsHow to avoid multiple function calls in the view?
Using Angular, in my controller I have a function that calculates the amount of filtered items. Thus: $scope.totalConferenciasRestantes = function () { return…
-
4
votes2
answers530
viewsField Ionic search, need to close when user click "Go" or "OK" from Keyboard
I have a search field at the top, which is just a filter, so: <div class="bar bar-subheader bar-light"> <label class="item item-input item-floating-label"> <i class="icon ion-search…
-
4
votes1
answer110
viewsProblems with select component
I have a problem presenting my list of items from my select. In this my HTML I use ng-repeat to list all items, and when my screen is loaded my first and only item is: {{list name.}}, when I click…
-
4
votes2
answers2274
viewsHow to use an angular input checkbox using Array?
I’m trying to use a Array in a input[type=checkbox] with Angular 1, but was unsuccessful. angular.module('app', []) .controller("Ctrl", function ($scope){ $scope.campos = [{nome: "Brasil"}, {nome:…
-
4
votes1
answer552
viewsCalculate the sum of repeated elements in Angular-JS using ng-repeat
In the code below is displayed a list of expenses using ng-repeat. For each element the description and value are shown. What’s the simplest way to show this total? <table class="table…
angularjsasked 7 years, 3 months ago veroneseComS 2,752 -
4
votes2
answers454
viewsHow to sum up all the elements of an ng-repeat?
Example: I have any ng-repeat, which repeats each one a number. How do I store a variable that is equal to the sum of this number of each repeat? Code Angularjs: ngular.module('meumodulo', [])…
-
4
votes1
answer296
viewsDynamic graph does not update
I’m using the library Rgraph graphics HTML5, and should update dynamically together with the bank. However, I would like the last data imputed in the bank to be placed on the chart, so if I inserted…
-
4
votes1
answer292
viewsHow to check if data already exists in the bank before inserting another in angular?
I have already made a modal that receives a name, it sends the controller in the function of inserting new contact. I want to check if this data is already registered in the bank so that it does not…
-
4
votes2
answers487
viewsFilter array by first letter
I have an array of objects and I need to separate them by the letters of the alphabet, so I need to limit the items by the corresponding letter. Example: A - Aston Martin B - Bugatti…
-
4
votes2
answers13159
viewsError: Access to Xmlhttprequest at 'file://...' from origin 'null' has been blocked by CORS policy
Hello, I am trying to add an html file inside another page through a directive. And give this error: Access to Xmlhttprequest at 'file://.../Angularjs/Formul%C3%A1rio%20Simples/views/client.html'…
-
3
votes2
answers1588
viewsGrid with auto refresh html + Angularjs
Well I have a grid and it needs to be ALWAYS updated because it contains information that needs to be updated dynamically. This grid is populated with a Rest flame that returns me a json. I need the…
-
3
votes3
answers9080
viewsOn-demand paging with Angular or Javascript
How to make a pagination on demand with Angularjs? I have 2 particularities: 1 - No jQuery, only Angular or pure Javascript can be used. 2 - I have 2 methods the prevPage and nextPage. Below example…
-
3
votes3
answers217
viewsIs it possible to use Controllers hierarchically in the Angular JS?
Controllers are declared in the DOM via the ng-controller attribute. My question is: It is possible and robust / safe to define Controllers hierarchically in DOM in daughter tags ? Example: <div…
-
3
votes2
answers2033
viewsReturning ZIP Code data in form
I have the following problem: I am trying to fill in the fields street, city and state with the post informed. They’re all input. I’m using https://github.com/jbochi/cep My project is in Django, but…
-
3
votes2
answers757
viewsAngularjs Directive - Good practice
I know it is possible to create a Directive in Angularjs in the following ways: <div angular></div> <div class="angular"></div> <angular></angular> <!--…
-
3
votes2
answers4665
viewsHow to convert milliseconds to date
I would like to know how I can make a millisecond to date conversion within a field in a json. For example $http.get("http://teste").success(function (dados) { ng.locations = $.map(dados,…
-
3
votes2
answers1497
viewsError: $injector:modulerr Module Error
In a project I’m developing, I’m including the files: app js. angular.module('app', [ 'app.controllers', 'app.services' ] controller js. angular.controller('HomeController', function($scope,…
angularjsasked 10 years, 3 months ago tadeubarbosa 424 -
3
votes2
answers2250
viewsCRUD with Angularjs
I have a single-page and I need to save the value of a variable in the database. How to do this using angular js? This variable gets the title of my single-page. This title will be customized by the…
-
3
votes3
answers129
viewsHow to share access between directives?
How can I call a directive, within a second directive? I have a variable x in directive 1 and I want to access this variable x in a Directive 2 so that I can say that x (diretiva 1) === y (diretiva…
-
3
votes1
answer167
viewsSetuse setInterval X Websockets
I am developing a PHP application with Angularjs, in this application has a messaging system. I just need to check the message quantity at least every two minutes. My doubt would be, the use of…
-
3
votes1
answer155
viewsUpdate data in a module with Angularjs
I am developing an application with angular and I call a webservice that returns me a JSON and I wanted to know how to update this Json from time to time with angular, someone could give me a help?…
-
3
votes3
answers1008
viewsHow to improve my code (many If’s and Else’s)
I have a function to search a json locally and change the data of some Fields. however, I do not want to test if the field is with the status code and depending I change with the correct value for…
-
3
votes1
answer4689
viewsHow do I create a custom format in a string with Angularjs?
Well I have a date 19102015, if I do so {{step.data | date:'dd/MM/yyyy'}} i can format the date and get 19/10/2015. But in my case, I need something customized. I have a cnpj that comes like this:…
-
3
votes1
answer1249
viewsHow to take objects from an array, with filter passing as parameter an object with multiple ID’s
Associating the object "categories" in "products"; With the ID I need to associate to such product, so for example "products 1" should receive the "categories" with the ID [1, 3, 4]. creating…
-
3
votes1
answer785
viewsAngularjs with Socket.io and Mysql data
The following query in cidade.php search how many requests are open in a given city, which blocks a link. If 0, the sum of query releases the link. If it is larger than 1 blocks the link. Controller…
-
3
votes4
answers12782
viewsValidation of CNPJ with Angularjs
I’ve already managed to make a mask, but I still can’t validate whether or not this cnpj exists. What I have today is <input id="input-cnpj" name="cnpj" id="cnpj" ng-model="data.cnpj" type="tel"…
-
3
votes3
answers6238
viewsHow to change an item in a json
I have a JSON array like this: [{ id: 1, total: 50.00 }, { id: 2, total: 70.00 }] I would like to know how to add/change an item into a id only. As if in SQL. For example, in case I wanted to change…
-
3
votes2
answers2832
viewsURL with string parameters with angular.js
I would like to know how to best treat url with parameters string angular.js. When accessed: www.app.net/nomeDaPessoa/ServicoDaPessoa Would respond to a certain route that is receiving the…
-
3
votes1
answer460
viewsLoad all dependencies dynamically
In the file index php. do the include of all controllers: <script src="app/app.js"></script> <script src="app/ctrl_A.js"></script> <script…
angularjsasked 10 years ago Filipe Moraes 8,737