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
-
2
votes2
answers697
viewsSorting objects in a Json without id in Angularjs
How can I sort the display of a Json object array in Angular, ng-repeat? orderBy? and this json has no id to do this ordering, I would like to be able to sort it by sequence of "last added".…
-
2
votes1
answer64
viewsError prompts Ajax(Get) Angularjs
I’m having a problem when I make a GET request to the server. My Factory always returns an empty object, when it should not. So mine server (localhost:8080/av1/listarCarroEstoque) upon request…
-
2
votes2
answers88
viewsHow do I edit the width of a class using Angularjs?
I have an element with two classes: <div class="classe1 classe2"> </div> I want to increase the width of my class 2 style, what would be the right way to do this?…
-
2
votes2
answers2629
viewsHow to login with php and Session on Ionic?
I’m making a mobile app with ionic and I have to log in users from an external database, I need to know how to log in via php and create a session with id user’s ?
-
2
votes1
answer117
viewsMaking a Factory return data from an Ajax request
I’m trying to make a Factory that returns the JSON of an Ajax request that I’m making, only, I think because it’s asynchronous, the container with the users always comes back empty. So much so that…
-
2
votes1
answer560
viewsHandling possible typos in emails (@gamail, @hotnail .)
Well, I have some problematic registrations because the user typed in: "josé@gamail.com". From what I saw in this answer, most servers have disabled a possible ping with reply if the email exists,…
-
2
votes1
answer135
viewsChange path path with Grunt
I have a problem with my application. It will be all angular, but I need to know how I can change the path of my javascript according to my environment. Example: If I’m developing in the dev…
-
2
votes2
answers655
viewsModule error in Angularjs
I cannot understand and correct this error. I am using Ionic. Uncaught Error: [$injector:modulerr] Failed to instantiate module inparty due to: Error: [$injector:modulerr] Failed to instantiate…
-
2
votes1
answer1846
viewsHow to host my angular application
I have the following directories in my angular application: node_modules/ src/ --client/ ----/app/ ----/index.html --server/ package.json file print I would like when the user accesses my site he…
-
2
votes1
answer311
viewsDynamically populate a databind
I have a table with a shopping cart. Cart items are: n° pedido, produto, quantidade (in this case it is an input with ng-model='produto.quantidade * produto.preco' ) that will automatically fill the…
angularjsasked 9 years, 8 months ago Almir Júnior 31 -
2
votes1
answer800
viewsJsangular Multiple ng-repeat
I’m having a hard time creating a loop with ng-repeat, at the angle. Next... I wanted to create tags for each projeto that I add, example: See that it is possible add more tags and there is also, in…
-
2
votes1
answer24
viewsContraindications in Iife’s
Is there any contraindication using IIFE’s within the context of an object? For example, in the properties begin and created i do the auto run function to set the properties at the time of variable…
-
2
votes1
answer43
viewsAngularjs Routerprovider configuration error
I imported the angular-route.js and made the following configuration : <script type="text/javascript"> angular.module("layoutxepa",["ngRoute"]); angular.module("layoutxepa").config(function…
-
2
votes1
answer171
viewsUsing ng-Options how do I filter that exactly interprets the reported value
I’ll give you an example just for testing: In this example when I put filter:chart.id='1', in addition to it returning me id 1 it returns me id 10, as I would return only id=1? function…
-
2
votes1
answer445
viewsAngularjs and Django integrationForms to record data
How you’re handling Javascript frameworks integration with forms django? Sample scenario Address forms where there is a telephone field (Many-to-ONE), which in the template is represented by an…
-
2
votes2
answers81
viewsDisplay most important information from a JSON file
How do I present only some of the most important information on a list such as the following example? { "userId": 1, "id": 1, "title": "DRF - Delegacia de Roubos e Furtos", "endereco": "Praca Maua,…
-
2
votes2
answers788
viewsHow to show photos from the camera album with the Cordova camera plugin?
I have a mobile app, what I want to know and do is: I have a modal that when opened I want to appear the photos I have on the device (in this case on the camera roll) and but show in a div I already…
-
2
votes1
answer149
viewsInjection of dependency into service
Guys I can do dependency injection in services? for example, I tried this: service 1 var crypto = angular.module('crypto',['ngRoute']); service 2 var teste = angular.module('userlog',['crypto']);…
-
2
votes2
answers179
viewsFetch new value from a variable in Localstorage after returning to the view using $state.go();
I have a view that uses a Localstorage variable called Entity. /* Entity Service */ .factory('EntityService', function (){ return { getEntity : function(){ return…
-
2
votes1
answer1117
viewsSet $Scope value of a Controller from an Angular Directive
I’m trying to make from an event in a Directive, is called a method belonging to a Controller, the Controller method call is already correct, only it seems that the $scope, within that method is…
javascript angularjs angularjs-directives angularjs-scopeasked 9 years, 6 months ago Fernando Leal 9,770 -
2
votes1
answer292
viewsAngular.js $setValidity onload Page
Setting: I have a form with 3 steps, a jsp for each step. In a given jsp there is a input text with the directive ng-minlength and a onChange calling a function that validates with the $setValidity…
-
2
votes2
answers694
viewsng-click Does not work with elements created dynamically
Good night I have this method $scope.register_popup = function(id, name) { for(var iii = 0; iii < popups.length; iii++) { //already registered. Bring it to front. if(id == popups[iii]) {…
-
2
votes1
answer2126
viewsAngularjs User Authentication with Java/Jersey Rest API
I am developing the user authentication module in my application and I am having some problems accessing the API, getting error 403. The old way I was doing, when I sent the request to the service,…
-
2
votes1
answer152
viewsHow does Angularjs databinding and Dirty-check work?
How the Angular data-Binding works underneath the scenes and how it can update the HTML so quickly an input to the declaration with {{}} and not only in Angular, but also in other cases like…
-
2
votes2
answers985
viewsChronometer between two Angularjs dates
Suppose I have two dates: 2015-11-13T08:00:00 and 2015-11-13T10:00:00, as you can see there is a difference of two hours between these dates. I would like to put a chronometer in my view that shows…
-
2
votes1
answer234
viewsDemand Routing for Controllers
I am creating an application that uses Angularjs and I am new to this library. My problem is that when I see the way it makes the $router i understand that there is a lack of some way that I can…
angularjsasked 9 years, 6 months ago LeandroLuk 4,989 -
2
votes1
answer61
viewsInteracting with the linux system
Is there any function or way to get javascript/Angularjs to communicate with linux? For example: <!doctype html> <html ng-app="myApp"> <head> <link rel="stylesheet"…
-
2
votes1
answer1467
viewsAutomatic print after HTML is loaded with Angularjs
When clicking a button to print a report, it should consult with Angularjs some information in the database and then execute the command to print ($window.print()) after the page is already loaded…
-
2
votes1
answer4505
viewsDisable button in Angular depending on a variable
I have a problem, I have a condition at the angle when my situation is PENDING, will disable two button. $scope.situacaoParcelaPendente = "PENDENTE"; /*ultimo teste*/ if…
-
2
votes0
answers30
views$cordovaFileTransfer does not send parameters to webservice?
I’m trying to upload an image using $cordovaFileTransfer. When I send the image I want to send tbm some parameters like the user id, the problem is that these parameters arrive null in the…
-
2
votes3
answers1534
viewsCreate global function in Angularjs?
I’m working with $mdToast which is used in multiple locations for notification. I would like to create a global function for him, which would be something like this: function alerta(texto){…
-
2
votes1
answer40
viewsDMZ with Ajax on client
My problem is this, I’ve been developing a Single-Page Application which in the end will be posted on a server DMZ. On the other side I’ll have one API who will receive the requisitions from my…
angularjsasked 8 years, 11 months ago Kevin Allen 71 -
2
votes1
answer810
viewsAdding Admob to the Ionic?
I’m trying to put monetization in my Ionic app. Searching, I found some examples but I’m not getting it to work. The banner just doesn’t appear. I followed that example, that is pretty simple by the…
-
2
votes2
answers5761
viewsAngularjs ng-options: Use object property as value instead of array index
In the code below, Angularjs ng-options renders the value but records the position in the array and not the value. I get the following json: [{"iduniforme":1, "nomeuniforme":"Uniforme 5 itens",…
-
2
votes2
answers382
viewsUpdate ng-repeat outside ng-view?
I have a fixed menu at the top, where the pages are opened through Routes in ng-view. In an X view I add a new element to my database, and in the fixed menu I use ng-repeat to list these elements.…
-
2
votes2
answers2835
viewsSend html page variable to another page using javascript
My page receives information from my js, this so my code: for (var i = 0; i < len; i++) { tblText += '<a href="teste.html"><table id="t01" class="table-bordered">'; tblText +=…
-
2
votes1
answer624
viewsHow does data-Binding work in Angularjs?
I looked for something that explains to me how the magic of data-Binding happens but I did not find. My question is how data is propagated from view to model, how it manages to keep track of changes…
-
2
votes2
answers2217
viewsDynamic checkbox list in Angular and JSON API
I’m having trouble rendering dynamic checkboxes with JSON API response. Are 2 ng-repeats : Bringing the list of existing categories into the dataset, and; ng-model with the list of chosen…
-
2
votes1
answer1724
viewsHow to store images in a Javascript object?
I’m developing an app that consists of a map and a camera. At the moment, I want to add the possibility of the user taking a photo with the camera and marking on the map where this photo was taken,…
-
2
votes2
answers1104
viewsBest Way to Perform Dependency Injection on Angular JS
I am working on a very large system where I am creating several modules and needed to guide them in a coherent way. Currently I am centralizing the injection of dependency in a single module, what I…
-
2
votes1
answer1183
viewsDifference between JS Dates - Error momentjs
I need to calculate the difference between two dates reported. I need to know the results in years and months and days. I used the momentjs library in conjunction with Angularjs. By setting the…
-
2
votes1
answer256
viewsFront page - Ionic and ui-router
I am setting an application opening page, where a list is displayed and clicking on an item, the user is directed to a page that contains tabs. As shown below: Each tab should display the contents…
-
2
votes1
answer1123
viewsI cannot open modal (dialog)
He was using a bootstrap template, but as it was irregular (they had not paid) the company bought another, also bootstrap. But the way I used to mount the modal doesn’t work anymore. I can’t open…
-
2
votes1
answer163
viewsAngular in PHP page read an API generated in php
I’m talking about this example: <div ng-app="myApp" ng-controller="customersCtrl"> <table> <tr ng-repeat="x in names"> <td>{{ x.Name }}</td> <td>{{ x.Country…
-
2
votes2
answers2167
viewsPass data via POST in Angularjs to PHP API
Good afternoon I need to pass data via post using Angularjs for a php api the data appears in the controller but not in the PHP api. if( isset($_REQUEST['mes']) ) { $mes = $_REQUEST['mes']; } else {…
angularjsasked 9 years, 4 months ago Ângelo Rigo 163 -
2
votes1
answer223
viewsAngularjs - Directives: Element or Attribute
I’m new to Angularjs and I’m looking at the Directives part, and I’m seeing that there is a restrict element and a restrict attribute. I understood what each one does, but it was not clear when I…
-
2
votes1
answer79
views$http error with Ionic and spring
have an API with spring framework follows the method below: @RequestMapping(value = "/users", method = RequestMethod.GET) public @ResponseBody ResponseEntity<List<Usuario>> listUsers ()…
-
2
votes1
answer460
viewsClose a Collapse when opening another using Angularjs UI
I have one Collapse and the other right next, I wanted to click on one, close the other if it was open. My html code: angular.module("seuCondominio", ['ui.bootstrap']);…
-
2
votes0
answers513
viewsSend a list to a web api using $http.put from Angularjs
I’m having trouble sending a list using the $http.put method from Angularjs, I can send an object normally, plus a list is not following, someone has some example code so that I can take this doubt…
-
2
votes1
answer215
viewsTake the result of ng-repeat and use in Moment.js
I have an app that uses a ng-repeat to list information. One of this information comes with a date as an example below, what happens is that I wanted to use the relative function of moment.Js. My…