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
answer292
viewsUpdate Data Binding in Navbar after logging in
I have a navbar which is included in the index.html page <body> <div class="container"> <div ng-controller="colaboradorController"…
angularjsasked 9 years, 1 month ago DiegoAugusto 8,694 -
1
votes1
answer1455
viewsBlock routes according to user permission Angularjs
I have a system where I log in a user, in case everything right the server returns me an object and I store this object in sessionStorage. I can recover this object to do some validations, e.g.:…
-
1
votes1
answer243
viewsHow to Create an Advertising Banner for My App ? Ionic and Angular Js
I want to create a company advertising banner in my app in the footer as I do someone has some material that can explain me how to make a banner for app. like the image below where it is marked in…
-
1
votes1
answer786
viewsCreate list sorted by letter with Angularjs
How can I create a list sorted by the initial letter using Angularjs? I have several categories in a json file and would like to list them by blocks with initials. Blocks ordered like this: To…
angularjsasked 8 years, 4 months ago Altemberg Andrade 633 -
1
votes1
answer197
viewsHow to know which is the first item in the ngRepeat loop?
How to know which is the first item in a loop ngRepeat? For example, I want to add a class in a div, when it’s the first in the loop. Example: <div ng-repeat="name in ['guilherme', 'wallace',…
angularjsasked 8 years, 3 months ago Wallace Maxters 102,340 -
1
votes1
answer170
viewsAdd to a category
I am unable to make the new tasks added belong to the selected category in select. angular.module('TarefApp', []); angular.module('TarefApp') .controller('TarefasController', function($scope) {…
-
1
votes1
answer346
viewsIgnore CSS Class on a specific page
I have a system where the front was made with AngularJS. In that system I have the page index.html where I declare all the libraries, on that same page I have o seguinte trecho de código: <div…
-
1
votes1
answer487
viewsDefault select Angular
<select class="ui search dropdown" ng-model="vm.empresa" ng-options="item.id as item.label for item in vm.collectionData.items track by item.id" required > <option value="">Selecione uma…
-
1
votes1
answer174
viewsUncaught Error: [$injector:modulerr] - Asp.Net MVC
I’m having trouble uploading data from controller in Angular. I’m not understanding, I followed step by step the explanation and mine gave this error. var app = angular.module('app', []);…
-
1
votes0
answers244
viewsEdit image by adding an IONIC frame
with Cordova-plugin-camera I can already take a photo and manipulate the location of the file, but there is some other plugin or method to apply something to the photo, as a frame? 1 - I take a…
-
1
votes1
answer652
viewsHow to redeem id from one controller to another controller in Angularjs?
I have a mobile app, I have an area where I list all the news that ah, and I have an option to like the news what is happening to me and that I am not able to get the news id to send to mysql I…
-
1
votes1
answer206
viewsHow to receive Angular data in a PHP (route) file
0 vote against Accept Friend, now it worked, but I was left with a doubt... Regarding the accentuation, he is not accepting accentuation. I’ve tried the forms below, but there was no way: var config…
-
1
votes1
answer22
viewsTemplateurl according to object property
Hello, I have a controller with an array ($Scope.Fields) with several objects inside: each object is a different form input (e.g., input, select, checkboxes). I’m already using ng-repeat to iterate…
-
1
votes0
answers108
viewsWhy does google plus login on Angularjs not work correctly?
I have a mobile app and I have option to login by google plus I have the controller but when I log in and choose the account the information is not saved in session.set I did following this tuturial…
-
1
votes1
answer994
viewsIntegration (Angularjs) with Random Sentence API
I am trying to use Angularjs to pull data from the following API that generates random phrases: http://forismatic.com/en/api/ Follows excerpt from the code I’m using: $http({ method: 'GET', url: '…
-
1
votes3
answers1208
viewsHow to use ng-class conditional in Angularjs?
I have a mobile app where a list contains the users that can be followed. This system is working. However, in case after the indication of follow a user is realized logout and login again, the…
-
1
votes1
answer131
viewsPost e Put com Restangular para api Ruby on Rails
I’m creating an app single page using Angularjs using an API ruby on Rails and the plugin restangular to effect my requests. Problem: The default API expects POST and PUT requests to arrive isolated…
-
1
votes1
answer339
viewsAngularjs - select values according to other select
I’m new to Angularjs and as I’m starting I still have many doubts... I would like to know how to make a secondary have values according to a primary, as in these car sites, you select the brand and…
angularjsasked 8 years, 2 months ago Larissa Drosac 11 -
1
votes1
answer642
viewsAngularjs with Single Page and Ng-View does not work properly
I am using the following material as a reference: http://tableless.com.br/criando-uma-aplicacao-single-page-com-angularjs/ I created the files with the structure presented in the material to learn…
-
1
votes2
answers1088
viewsOrderby with accents
I’m trying to sort a map with some data, but I can’t sort the words with accents. They always come last, I need a hint to sort a map. Follows the code: (function(angular) { 'use strict';…
-
1
votes0
answers164
viewsProblem to configure angulajs in Nginx
I am not able to configure the angulajs in Nginx. I am using a Centos7 linux machine and I would like to configure the angular to be able to learn. Follow the Nginx.html configuration file user…
-
1
votes1
answer1023
viewsDirective to detect click out of an element?
In Angularjs, we have the directive ngClick, which serves to perform an action when an element is clicked. I’d like to create a directive, called ngClickout so that when the click occurs outside the…
angularjsasked 8 years, 2 months ago Wallace Maxters 102,340 -
1
votes1
answer84
viewsAngular, doubt how to set checkbox
Guys, I need a help, I have a checkbox that when selected activates a class in , so far it works, problem when I duplicate the tr, it activates the class for both at the same time. I posted the link…
angularjsasked 8 years, 1 month ago Samuel Souza 468 -
1
votes1
answer104
viewsProblem filtering counties by the district selected with ng-change in Angularjs?
I have a mobile app where I have two select option (districts and counties). What I intend is that when choosing a district appear only the counties that belong to that district. How can I do that?…
-
1
votes1
answer381
viewsHow to set variable in Angular Scope JS
I have the following dropdown: <select> <option ng-repeat="x in Ruas">{{x.Rua}}</option> </select> I need to take the selected value in the dropdown (x.Street) and set in an…
-
1
votes2
answers491
viewsGet Timezone from browser using Angularjs
I need to get the user’s browser Timezone. As this is an application using Angularjs, I decided to use the angular-Moment However I did not succeed in getting the name of Timezone. What I need is a…
-
1
votes0
answers75
viewsReturn data from another function within an ng-repeat Angularjs directive
I have a function that returns an array within a directive ng-repeat, so far everything normal, What I want to know how to bring data from another function that makes another query, I want to bring…
angularjsasked 8 years, 1 month ago Marcelo Henrique 11 -
1
votes3
answers1296
viewsHow to use grid with ng-repeat in Angularjs?
I have a mobile app I want the ng-repeat create the content in a grid as I have in the example below but always repeat as an example below: <div class="row responsive-md"> <div…
angularjsasked 9 years, 1 month ago César Sousa 2,025 -
1
votes2
answers233
viewsHow to use a $Scope variable within ng-class
I have the following code: <a ng-class="{'text-{{color}}-6': menu == '#background'}" href="#background"> My Menu </a: It works, at first it adds the text-red-6 class to the element. But…
-
1
votes2
answers73
viewsHow to use an angular service outside the angular structure?
On the corner we have a service called $http. I know to call it just pass as a parameter of a closure, that the angular does the magic: angular.module('foo').controller(function ($http) { /** ...…
angularjsasked 8 years, 1 month ago Wallace Maxters 102,340 -
1
votes1
answer328
viewsRequest to API using Angularjs
I am still novice in development using Angularjs and am having problems accessing an API: .controller('RegulamentoCtrl', function($scope, $state, $http, $ionicPopup, AuthService) {…
-
1
votes1
answer517
viewsHow to Filter with Two Conditions using Modal in Ionic
I created a modal that filters only the categories that are registered, now I would like to take the selected items in the Checkbox of this modal and filter according to the categories selected by…
-
1
votes1
answer602
viewsHow to send data from an Ionic Framework generated form to a PHP file and return a JSON?
I’ve been following the documentation of Ionic Framework and selling tutorials on the internet, but there is no detail of communication with the server. I would like to send form data and receive…
-
1
votes3
answers16786
viewsChange object value
I have an array with objects similar to this: [{ name: '2015', data: [...] color: 'orange' }, { name: '2016', data: [...] color: 'red' } ] I’d like to change the value of name for another name, like…
-
1
votes1
answer75
viewsJSTL adding null option inside select element
I build a line <tr> using Angularjs and JSTL, and within this line I have an element select where it is travelled by using <c:forEach> over an enumerator to fill it when the user clicks…
-
1
votes1
answer300
viewsAngular and mysql paging logic
I would like to know how to implement a database paging logic using mysql and angular on the front end with ui-bootstrap or dirPagination. For example, taking 10 out of 10 in the bank using LIMIT…
-
1
votes1
answer83
viewsHow to ensure security of api’s Rest
I’m creating a system using MEAN Stack and I came up with a question .. My angular client application requests the ex api: POST http://127.0.0.1/api/product If some malicious user found the url of…
-
1
votes1
answer962
viewsFilter between two Ionic dates
I have a system where when entering a page a list is loaded with some data. But I would like to make a filter to search the data between two dates. Ex: search all records between 03/10/2015 and…
-
1
votes1
answer432
viewsHow to increase text font with Ngsatinize?
I am not managing to increase or decrease the source of my news, which is with the attribute Ngsatinize, does anyone know how to modify it ? or another way to satinize my html ?
-
1
votes1
answer367
viewsData Binding does not work after calling function
I have the following function: $scope.calcularTotal = function(startDate, endDate){ $scope.items = $filter('betweenDate')($scope.items, 'dataPagamento', startDate, endDate); console.log("testee:…
-
1
votes1
answer730
viewsPrevent duplicate entry into a list using Angularjs
HTML: <div class="container" ng-controller="ListaComprasController"> <div class="row"> <div class="page-header"> <h1>Lista de compras</h1> </div> </div>…
-
1
votes2
answers1896
viewsLoader on angled page
I need an angular download for the whole page including html, not just ajax requests. Any suggestions? Example on the link below, preload and load the content.…
angularjsasked 8 years ago Samuel Souza 468 -
1
votes1
answer427
viewsng-show/ng-Hide does not update index-html, only the view
I am mounting an application that has an index.html and views in separate files being rendered within ng-view index. In this index I have a footer that I would like to disappear when the user is…
angularjsasked 9 years ago Eduardo Martins 98 -
1
votes3
answers1314
viewsHow to read a . json file in the Angular module.config()?
I have a config.json file at the root of my project with some information that can be changed: folder path, etc.. I cannot create constants (angular.Constant) in the code, because as I said the…
-
1
votes1
answer438
viewsHow to call PHP function in another Angularjs function?
I have the following Function in Angularjs: angular.module("fluxo").controller("fluxoCtrl", function ($scope, $http) { var mostraTodasContasEntradas = function () {…
-
1
votes2
answers2346
viewsAngularjs - File organization for large project
my doubt is not related to codes properly, but on how to better organize the project files. I know that this is a question that has neither the right answer nor the best answer. But as I am…
angularjsasked 9 years ago celsomtrindade 8,038 -
1
votes2
answers140
viewsAngularjs - A service is not "static"?
Starting from the idea that services are singletons (All Services are singletons), if I create a simple service with "local" variables and modify this in a controller, when accessing this value in…
angularjsasked 9 years ago Paulo Gustavo 1,319 -
1
votes1
answer259
viewsHow do I keep the browser scrollbar at the top by loading a new angled page?
I’m using modules created with Ode and Angular, by project specification we had to take the # of the navigation. However, when I click on a link that is on the footer and loads another page the…
-
1
votes1
answer397
viewsHow to pass data from Angular to a php class?
I have the following code in Angular: <script> angular.module("fluxo", ["ngRoute"]); .factory('factCliente', ['$http', function($http) { var _getData2 = function(id_empresa) { return…
-
1
votes3
answers341
viewsHow to render an html that came from a json response?
Response from the JSON: post: { body: "<div>O meu html vem dessa forma</div>" } I wonder how I do to render this mine post.body in my view. Is there any directive that does this for…
angularjsasked 7 years, 10 months ago fernandoocf 1,095