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
-
3
votes1
answer1480
viewsHow to do checkbox validation at the angular
I need the add button is only activated if at least 1 item of the list has been checked. For text inputs, I used ng-required="true" <div class="modal fade" id="listagem-tarefas" tabindex="-1"…
-
3
votes1
answer435
viewsHow to implement a javascript undo and redo system?
I see in some native tools on javascript, the option to redo and undo, as if it were a Ctrl + z and Ctrl + y, but they are graphical tools and not forms. I thought of something like... The…
-
3
votes4
answers995
viewsUser permission - Angularjs
I have permission levels for users on my system: admin user and basic user. I have a page that only administrator users can access. I put an ng-if="isAdmin()" in the menu to hide, if not…
-
3
votes1
answer4164
viewsProblems with angular-input-masks?
I am trying to use this module that is available on github and I think this module is very complete, provides the masks I need, however is very confusing its documentation. The point is, I cloned…
-
3
votes1
answer194
viewsSpecific doubt using ng-repeat at angular
I am using Angularjs in a project where I need to display a list of photos of products registered in the system and my html is like this: // Titulo para a área de produtos <div…
-
3
votes2
answers916
viewsOrderby with ng-repeat nested in the Angularjs
I need to order a list, which is in two ng-repeat, but I can only order within the group of the second ng-repeat and made a jsFiddle that shows my code: https://jsfiddle.net/xxg4ajkk/2/ The order I…
-
3
votes1
answer56
viewsAngularjs ignores content-type for GET requests
In my Angular 1 application, I’m using $httpProvider to be able to set the content-type by default in all methods, but for GET methods, it does not send in its header. How can I force the angular to…
-
3
votes1
answer510
viewsHow to run a callback at the end of a $http file, whether it works or not?
At Angular, I’m running a call HTTP through the $http.get and, when this request ends, I change the value of a variable through the callback in the then: $scope.carregando = true;…
-
3
votes0
answers161
viewsTesting a Trial in Angularjs
I am trying to apply unit test on the following function: function do_query(method, url, data, callback){ var defer = $q.defer(); var header_request = StorageService[storage].get('header_request');…
-
3
votes1
answer64
viewsDirty Checking Angularjs and Vuejs
I really like the Angularjs, and when I read in articles about its discontinuation, it was that one of the main reasons was Dirty Checking. I think that Dirty Checking are the checks made by Two way…
-
3
votes1
answer1502
viewsAPI at port 8000 and Angular at port 4200, how to resolve?
My system is making a request on port 8000 from localhost 4200 When a request is made by a protocol a domain on ports other than the origin, which is my case the Angular application is at port 4200…
-
3
votes1
answer138
viewsFilter date in en format in Angularjs?
I have a little problem to make a filter in Angularjs in a date field. Below follows the html: <td class="text-center" title="'Data'" filter="{ dataProposta: 'text'}" id="'data'">…
angularjsasked 6 years, 4 months ago Antonini Matias 33 -
3
votes1
answer22410
viewsHow to calculate how many weeks a given month has with Javascript?
I’m creating a calendar "in hand". I know you will say that there are several libs that already assemble the whole calendar, only in my project can not have external libs beyond Angularjs 1.5.8, I…
-
3
votes3
answers228
viewsHow to move a cursor as user type?
I’m creating a web game where a user types a code in HTML and the result is shown beside. I want to change the cursor that appears in the text area or make it look like a rectangle (like the Linux…
-
3
votes0
answers98
viewsProblem when displaying image inside modal
I need to display a list of selected images in a modal, but it is displayed only after clicking (focusing) somewhere in the modal. Excerpts from the code: HTML: <label>Imagens: </label>…
-
2
votes2
answers1138
viewsImplementation Angularjs consuming data provided from Laravel using CORS
I’m trying to create a web service in Laravel 4, which will be consumed by a mobile app using Angularjs. When I make AJAX requests with Angularjs, it gives Cross Domain error by being in another…
-
2
votes1
answer898
viewsUpload Angularjs image with Java server
I’m having a problem uploading a web image, I’m using the angular file upload, when I upload it saves the image in the folder Frame -> Images of the browser, and when I will read the inputStream…
-
2
votes1
answer1444
viewsCall Method in Routes in Angularjs
I have a controller called Productocontroller in Angularjs, this controller should have two methods, one to list all products when I pass a URL and another method to bring the product details when…
-
2
votes1
answer760
viewsAngularjs $http.get(localhost/test) does not work in Chrome
In my controller I have a $http.get(http://www.testesitelocal.com:18888/teste_json) that returns the values of the JSON test. I make this request on my local machine. In the Webview I made in Javafx…
-
2
votes1
answer313
viewsCreating an App for Sharepoint using Dev, Angularjs and Restapi
I need to create an app for Sharepoint that does the simple task of listing fields from a list on the screen where the App is placed inside Sharepoint. I’m making the following mistake: No…
-
2
votes3
answers1028
viewsHow do I populate a $Scope (angular) with get. Json (jquery)?
I have a PHP application and use $.getJSON jQuery to fetch data and present it to my user. I would like to fill a table using Angular. How do I fill one $scope with the response of $.getJSON ? Code…
-
2
votes1
answer2082
viewsHow to pass parameters by Angularjs providers?
I have the default site routes on a constant: app.constant('defaultRoutes', { home: { url: '/home', templateUrl: 'templates/home.html', controller: 'HomeController' }, [...demais rotas....] }); I’m…
-
2
votes1
answer963
viewsDynamic ng-repeat filter
I need to insert a dynamic filter, which comes from a select, into my ng-repeat select ng-model="campoBusca" input type="text" ng-model="busca" ng-repeat="funcionario in funcionarios | filter: {…
-
2
votes3
answers354
viewsAngularjs templateUrl error does not find html file
PROBLEM I have a problem with the minification of my project when it calls the templateUrl on the route, I am using Grunt to generate my build. In my development environment it works correctly, only…
-
2
votes3
answers8785
viewsHow to pass an Object to another page using Angularjs?
I would like to know about the manipulation of objects between pages using Angularjs, for example: I have a product page, I make a request and bring my data using the basics of Angularjs. My problem…
-
2
votes1
answer109
viewsAngularstrap date-template
Problem I’m implementing Strapangular in my application, but I can’t use contentTamplate to insert a form in my modal aside. I tried it this way mainCtrl $scope.aside = { "title": "Novo…
-
2
votes2
answers945
viewsIs it possible to exchange route system ($route) in the same URL? Angular JS
I want, from a constant (configuration) change controller or Directive that is in the same URL. For example, imagine I’m on the home page and then we have the path "/" ok. However, depending on the…
-
2
votes1
answer251
viewsPost in Timeline Facebook
I’m setting up a website where the user can request that content be posted on his timeline without him having to share it. Well I was left with the following doubt, seeing the return of this link:…
-
2
votes3
answers598
viewsCheck if there was POST with Javascript
I have a singlepage application, and would like to monitor the POST for a webservice. When I send the information it will remove the loading. ex: scope.deleteFile = function (fileId,index) {…
-
2
votes1
answer2301
viewsHow to get the current date with Angularjs with refresh on date?
How to do a refresh only on an "ng-Binding" and not on the page, to get the current date via Angularjs? I have the following code: function updateTime() { scope.time = new Date(); } But I need to do…
-
2
votes1
answer103
viewsError using $http Angularjs
I’m trying to call the $http method from Angularjs to get information from a REST Webservice, but the following error appears: Error: [$injector:modulerr]…
-
2
votes1
answer354
viewsAngularjs and SEO
I have a site made with Angularjs and PHP. All content that is common between pages is only loaded once, when the user changes page only the content of the respective page is loaded (running the PHP…
-
2
votes1
answer161
viewsjQuery File Upload - Angularjs
I have moved a site from one server to the other. I am using this tool to upload files: here. Now on the new server, when selecting more than one file I cannot upload the image, that is, it is not…
-
2
votes2
answers2218
viewsAdding values with Angularjs
I’m trying to do a simple college job but I’m caught on one thing, I have a list of objects with properties: $scope.items = [ {title: 'Chuveiro Elétrico', quantidade: 4, potencia: 3500}, {title:…
-
2
votes2
answers12115
viewsDoubt with ng-if or ng-Ide Angularjs
I’m trying to use the directive ng-if to hide a button as soon as I click another but could not find any example and found the documentation unclear, could someone give me an example?? using this…
-
2
votes2
answers848
viewsProblems with array in Angularjs
I have a certain problem filling an array and then returning it. For example: JS var my_array = {'teste':{'name':'Teste 123'},'lorem':{'name':'Lorem Ipsum'}}; // Esse valor é preenchido pelo…
-
2
votes1
answer426
viewsWhen to Use Factory Angularjs
Hello folks good night, I wanted to know two things the first is when I should use the Factory directive and the other is if for example within a Factory I can make an Ajax request and return the…
angularjsasked 9 years, 9 months ago Leonardo Villela 1,620 -
2
votes1
answer721
viewsBlock pages with Angularjs login with asynchronous call
In an application made with Angularjs, some pages are protected by login. I configured the module as follows: var app = angular.module('App', ['ngRoute', 'ngTouch', 'mobile-angular-ui']);…
angularjsasked 10 years ago Filipe Moraes 8,737 -
2
votes1
answer629
viewsMake a negation filter in ng-repeat
I have an object and I’m reading it in ng-repeat, only if the id key equals 0777 I don’t want that position to be displayed, <div ng-repeat="account in accounts | filter:{accountId :'00777'}…
-
2
votes1
answer930
viewsHow to Filter after pressing a keyboard key, ENTER for example
Is there any way to filter the record from enter, not at runtime as is customary for Angular?
angularjsasked 9 years, 8 months ago Cristian Da Silva 23 -
2
votes1
answer722
viewsUsername and password appear on console after POST
The code below makes a POST of the data entered by the user in the login. $http.post('api/v1/login', object).then(function (results) { return results.data; }); Note that I pass as a parameter an…
-
2
votes3
answers926
viewsUsing find at angular
I’m studying angular and I’m in trouble. I created a directive called acao, I’m trying to get inside it the click on the element ul > li, but it doesn’t work using find and I can’t put ng-click…
-
2
votes1
answer148
viewsTesting of variable content
Using ASP.Net MVC and Angularjs I tested the contents of a view thus: $scope.estado.ldRedeBasica = @(Model.ldRedeBasica == null ? "[]" : Html.Raw(Model.ldRedeBasica)); Only it returned the following…
-
2
votes2
answers3120
viewsSingle Page Application with jQuery
How can I develop a SPA with jQuery? I did with Angularjs with the following code, but I’m having difficulties to migrate to it definitively and decided to stick with jQuery not to be late. var…
-
2
votes2
answers218
viewsIs there a way to not fill HTML with directives?
Using the directive ng-click to catch an event by clicking one link would be something like: <a ng-click="call('home')" href="#" title="ir para homepage">Home</a> But this wouldn’t be…
javascript angularjs angularjs-directives angularjs-scopeasked 9 years, 12 months ago Renan Gomes 19,011 -
2
votes1
answer90
views$http Angularjs Return not expected
Description I am implementing a $http request with angular. I want to return the database objects. Code Companyservice.coffee angular.module('vaultfactor').factory 'CompanyService', ($http, $q)…
-
2
votes1
answer132
viewswatch on an ng-click
I have the following input: <input type="submit" value="Publish" ng-click="submit(editAddNotification)" project-focus-invalid-field> When I run it, it inserts the change into my database (a…
-
2
votes1
answer326
viewsHow to pass an Array to Angularjs?
array ( 0 => Pessoa::array ( 'nome' => 'Paulo', 'idade' => 15, ) app.controller('meuCrtl', function ($scope, $http, $timeout) { $http.get('ajax/getPessoa.php').success(function(data){…
-
2
votes3
answers369
viewsQuestion about loading modules with requireJS and Angularjs
I’m studying a code from a former employee of the company and he used requireJS + Angularjs. He has created several modules with plenty of services etc, but my question is: when using a service or a…
-
2
votes1
answer1260
viewsHow to get a POST parameter in REST application
I started a Rest application and have a java class createPost POST @Path("/post/") @Produces(MediaType.APPLICATION_JSON) public static String createPost(@FormParam("loopID") String loopID) throws…