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
votes0
answers428
viewsKendo UI Grid in an Angularjs Directive
How to create a Kendo-grid with reusable options using Angularjs? In addition to the default settings, the grid should dynamically include a column checkbox with the option to select all lines. The…
-
1
votes1
answer467
viewsHow to submit a post using Django Rest Framework and Angular.js
How do I submit a post on Angular? I ran a test here and requires you to report to PK: index.controller('EditController', function($scope, $http) { $scope.save = function() { var in_data = { name:…
-
1
votes1
answer681
viewsAngularjs ng-repeat is not taking values
I’m returning a json with this code: $scope.movies = angular.toJson(results, true); and Getting this json: http://pastebin.com/87tJm8XE And trying to get the data with this: <ion-item…
angularjsasked 10 years, 6 months ago Pedro Marques 11 -
1
votes1
answer774
viewsHow to make a select using Angularjs?
I’m trying to make a select field in mine view and I’m using the framework Angular.js, but I’m not used to working with it and I’m not getting the job done on controller. Below is the example of the…
-
1
votes1
answer2343
viewsReceiving JSON with PHP via $http.post()
I want read a JSON in PHP received from a function $http.post() from Angularjs, I’ve tried using json_decode() and set up the header (both in PHP and Angular) but it didn’t work. PHP accuses it to…
-
1
votes1
answer2036
viewsHow to manipulate CSS property in Angular JS
I have a function written with jQuery (without Angular) to resize the minimum height of a div which in this case is the main content div of the layout of a web application. This function is…
-
1
votes2
answers2749
viewsValidate e-mail with Angularjs
I have the following field for e-mail: <input type="email" class="form-control" id="email" name="email" ng-model="fields.email" required="true" /> In the div where the field is, I have the…
-
1
votes1
answer198
viewsShow menu with ng-click + ng-class
I am trying to make a side menu that appears when the user clicks a button, using a class . is-Visible <button ng-click="visible=!visible;">Click me to open the menu!</button> <div…
-
1
votes1
answer58
viewsUnknown Provider: ifFilterProvider <- ifFilter at the angle
I have next in my app.js (function(){ 'use strict'; angular .module('app', ['ngResource','ngRoute']) .config(function ($routeProvider) { $routeProvider .otherwise({ redirectTo: '/' }); })…
-
1
votes1
answer560
viewsAngular.js fails to instantiate the module
Well, it’s the first time I’ve ever done anything with Angular.js and I’m picking up a bit to create a message of "Incorrect Login and Passwords" with the same. I have a method in a file . js that…
-
1
votes2
answers1298
viewsRemove array from an array
I have the following data in an array var array = [ ["755", "20", "E", "274", $$hashKey: "0AK"], ["756", "20", "E", "274", $$hashKey: "0B7"], ["455", "30", "E", "159", $$hashKey: "0BQ"], ["757",…
-
1
votes1
answer550
viewsHow to access a directive through a controller?
Can anyone tell if it is possible to access a directive through a controller? The idea is for my controller to check a flag that is instantiated in the directive since it checks to show some…
-
1
votes1
answer782
viewsPage effects with javascript
Can anyone answer me how to make pagination effects on my HTML page? For example I have a table but this table can only display 10 records at a time, does anyone have any idea how to do this using…
-
1
votes1
answer814
viewsCalling methods in controller class (Asp.net web.api) to work when changing parameter name
I have a question regarding the use of the Asp.net web api with Angularjs that follows below. I have 2 methods in my controller class (Itenscontroller.Cs): public void Put(int id, [FromBody]Item…
-
1
votes2
answers1682
viewsConsume Rest with Angularjs
I created a Webservices to receive query by string and return a list, example: url/mePath/Luiz - Since Luiz is the parameter that will be passed, based on this parameter will return me a list of…
-
1
votes1
answer915
viewsTree menu / Collapse with three levels
I’m creating a navigation sidebar for an Angularjs application. The structure is basically a tree menu, but each level has different interactions (which I will still build). For example, the first…
javascript angularjs menu angularjs-directives angularjs-scopeasked 10 years, 1 month ago Samuel Guimarães 121 -
1
votes3
answers907
viewsHow to filter a Text in a div with JS angular
The problem is to assemble a filter in Angularjs to capture words, querys, inside a text, for example as if to search a word in a craft. <div ng-app="" ng-controller="namesController">…
-
1
votes2
answers1003
viewsAngularjs Object Sharing
Someone knows a way to send an object from one angular directive to another? I have 2 directives and I need access to the object in both. I’m not getting through parameter initially since the…
-
1
votes1
answer1435
viewsLoad menu after login with Angularjs
In index.html I have ng-view where HTML content is loaded: <body> <div ng-include src="'view/sidebar.html'" class="sidebar sidebar-left" toggleable parent-active-class="sidebar-left-in"…
angularjsasked 10 years ago Filipe Moraes 8,737 -
1
votes3
answers10174
viewsHow to Add and remove items from a json easily?
I have a json similar to this [{id: 1, titulo: 'compra', valor: 50.00, data:'2014-10-23' },{id: 1, titulo: 'compra', valor: 60.00, data:'2014-10-24' } ] I have a function to add, which adds a new…
-
1
votes1
answer170
viewsUsing Resolve in Angularjs
I am using resolve to check if the user is logged in as follows: routeProvider. //... .when('/dashboard', { title: 'Dashboard', templateUrl: 'view/dashboard.html', controller: 'authCtrl', resolve: {…
angularjsasked 10 years ago Filipe Moraes 8,737 -
1
votes2
answers4984
viewsHow to insert taken data from a JSON file and put into a list with Angularjs
app js. (function(){ var myApp = angular.module('loja', []); myApp.controller('CarrinhoController', ['$scope','$http', function($scope, $http){ $scope.title = 'Lista de Produtos';…
-
1
votes2
answers1891
viewsUpload with $http post
In my controller, I have the following code that I use to post my form: $http.post(url, json_object).then(function (results) { console.log(results.data); }); The above code sends a json to the…
-
1
votes1
answer299
viewsBroadcast runs once but the event is called 2 times
I have the following "broadcast" inside a "Directive": console.log('a emitir...'); $rootScope.$broadcast('olamundo', params); In my "controller" I have the following code: $scope.$on('olamundo',…
angularjsasked 9 years, 8 months ago Filipe Moraes 8,737 -
1
votes1
answer2186
viewsHow to filter, with angular, objects of a JSON by an id that belongs to another object within the array
My question is how can I filter objects from an array by comparing the id which is inside a "sub-object". Type: animais [ { id: 34, nome: baleia, categoria: { id: 2, nome: mamifero }, { id: 23,…
-
1
votes0
answers47
viewsbuild deletes files
Would you like to know if anyone has gone through it ? when I build the app IONIC ionic build android it erases any other file that is within /js right other than app.js and controllers.js what do I…
-
1
votes1
answer1181
viewsProblem with 'Access-Control-Allow-Origin' in Angularjs
Follows the code angular.module('App', []) .controller('InstaController',function($scope, $http){ $scope.busca; $scope.buscar = function(){ $scope.getInsta($scope.busca); } $scope.getInsta =…
-
1
votes3
answers506
viewsApply "datepicker" to element after angular call
I’m having a problem, when loading an HTML block from the page via the angular, the elements that have the class ". datepicker", activate the jquery of the plugin "datepicker", however, as I…
-
1
votes0
answers220
viewsLogin Form for Angularjs
Guys, I’m starting from Angularjs and I have the following question: I have an HTML page index.html in it I load all the project scripts and start the app. Inside it tbem I have an ng-view where my…
angularjsasked 9 years, 7 months ago Jacson Daner M. Brandão 63 -
1
votes3
answers5147
viewsAngularjs vs Jquery input mask
I have a ng-repeat and I need the input field to have the following format: 9.999.99 Code: <tr ng-repeat="item in estado.tabela | orderBy:'ano'"> <td>{{item.ano}} </td> <td>…
-
1
votes0
answers430
viewsRender Iframe google Maps with Angularjs
I’m building a directive to render a google maps iframe inside my app. And I managed to do it this way: <google-iframe location="item.Location"></google-iframe> js directive. function…
-
1
votes2
answers309
viewsWhy my $Scope. $watch doesn’t work
Does anyone have any idea why mine doesn’t work $scope.$watch, that model $scope.paciente.telefones is connected to a combobox. $scope.$watch('paciente.telefones', function(oldv, newv) { var…
angularjsasked 9 years, 7 months ago Leonardo Villela 1,620 -
1
votes1
answer955
viewsAngularjs indexof de Object
Every time I select a Bundle, add in an array, example: Items are some data I picked up, I just passed a few for testing var items = [755, 20, "E", 274] $scope.selectBundle = function(){ var info =…
-
1
votes1
answer601
viewsNg-repeat and Angularjs Beginner Error
I’m starting at the angular and I still don’t quite understand the workflow of it. The code below does not work: <body ng-app> ... <div ng-controller="Grid" class="gol-grid"> <div…
-
1
votes0
answers58
viewsNgcordova File does not generate file
I’m using $cordovaFile(ngCordova) + Ionic for my application and I need to store a json in a local file but I’m not able to generate the file to popular with json. controller js.…
-
1
votes1
answer215
viewsError with Angularjs for $http.get
I’m trying to fetch some data via WS(Web Service) only when I ask to return in my app gives this error: No 'Access-Control-Allow-Origin' header is present on the requested Resource. Origin 'null' is…
-
1
votes0
answers183
viewsAngularjs: Questions with complex template
I need to create a page where the template should vary as requested. For example, on the home page I have a space for contents in tabs and a fixed column (as shown below). Both tabs and column are…
-
1
votes0
answers218
viewsSave data by websocket
I am developing a system using Angularjs and Websocket (PHP or Nodejs I am still defining), where the information of the forms I intend to save via socket, ie by sending an array with the…
-
1
votes1
answer5415
viewsCreate directives with Angularjs
The button should display an Alert but nothing, no error appears. What error? Follow the code: angular.module('App', []) .directive('sonclick', function () { return { restrict: 'A', link:…
-
1
votes1
answer597
viewsAngular + Requirejs
Below is the structure of the code to facilitate: main.js require.config({ baseUrl: '/', shim: { angular: { exports: "angular" }, route: { deps: ["angular"] }, app:{ deps:['route'] }, controller:{…
-
1
votes3
answers3091
viewsHow to show or hide an element with Angularjs, without creating variable
I’m trying to make a table, where it shows the list of orders and the button for editing Lita of request: var lista = [ {id: 1, nome: 'Pedido 1', ano1: 100, ano2: 200}, {id: 2, nome: 'Pedido 2',…
-
1
votes2
answers331
viewsSynchronize objects of the same Array with the index of different pages
Use the angular-bootstrap-lightbox, which serves to show magnified images by clicking on they. I put the images on different pages, using the ng-repeat and the custom filter| filterBy: ['id']: ''",…
-
1
votes1
answer605
viewsHow to get back data from a Angularjs post request
I have the following code: $http.post('data.php').success(function(data) { return data; }).error(function(data) { console.log(data); }); How to handle data from this request? I’m doing it this way:…
-
1
votes1
answer1028
viewsProblem with Uppercase and Lowercase in Angularjs
People followed the example of a script in stackoverflow.com as follows the link below: [https://stackoverflow.com/questions/19040732/filter-php-list-with-angularjs][1] I happen to be having…
-
1
votes1
answer140
viewsui-select - How to put "name" attribute
Little problem here for a change, someone already worked with ui-select, I’m using in a project here within a client registration form to select states and cities, this working beauty, but it does…
-
1
votes1
answer195
viewsAngularjs php Node apache2
I started developing in Node.js using the frameworks Express and Angular when I needed tutorials I noticed that in some is used the Angular along PHP to make bank requests. My question is: which…
-
1
votes2
answers953
viewsSame controller for different views
When defining routes, I have the following code: $stateProvider .state('app', { url: '', abstract: true, views: { 'login' : { templateUrl: 'view/login.html', controller: 'authentication' },…
angularjsasked 9 years, 9 months ago Filipe Moraes 8,737 -
1
votes2
answers264
viewsHow to return the specific element, when using multiple custom share buttons on the same page, using querySelectorAll?
This custom Facebook share button works great when you put only one button on each page. (This is an excellent way to make Ajax and Javascript projects traceable to search engines and social…
-
1
votes0
answers467
viewsButton to add a new form and a new Angularjs field
I need to make a form of questions and answers, basically, as follows: Should allow adding several questions, each with at least 2 answers, where one of them should be marked as correct; Delete…
angularjsasked 9 years, 9 months ago João Vitor 11 -
1
votes1
answer732
viewsRecover Input File with Angular Js
I need to create an object with the data of a form and do not know what to do with input type="file". Is there any ready-made, ng-model type directive, that recovers the file from an input…