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
votes1
answer62
viewsArray de Requests
I own a list of contacts, each contact has its agency reference and I can only access the data of this agency by making a request. For each contact I have to access the agency to return the complete…
-
2
votes1
answer684
viewsBootstrap button with Angularjs
How can I change the Button class? <!doctype html> <html ng-app="ui.bootstrap.demo"> <head> <script…
-
2
votes1
answer549
viewsChange style in ng-click and after a while return to normal with Angularjs
I have the following problem: I need a field to be shown in a solution with a "mask" as if it were hidden. When an event occurs or a click on a button (or itself) such field is filled with a value…
-
2
votes2
answers901
viewsColorize Selected Line Angular JS and Bootstrap
How do I color the selected line in a table? I have the following code: <tr ng-repeat="p in produtos" ng-click="info(p)" ng-class="{'info': ??}"> I’m just not able to find a condition to color…
-
2
votes1
answer1338
viewsHelp with Mask Directive for 4 decimal digits in Angularjs
I want to make a number directive in Angularjs with two features, one to format when typing a number in an html input. Example of how you would like : 1,200,0000 12.000,0000 120,000,0000 and the…
-
2
votes1
answer1168
viewsProblems with localhost application with Angularjs and Nodejs
I’m having some questions and problems trying to create a server with nodejs. The point is I have an application developed with Angularjs very simple and want to do another in nodejs which basically…
-
2
votes1
answer277
viewsAngularjs website accessing API, authentication doubt
I have an API written in PHP+Slim, which is being used by an administrative panel, and the authentication is via token, which is returned when the panel user logs in. However, I am making a site…
-
2
votes2
answers1753
viewsglobal variable Angularjs
The question is simple, before the function I declared splited and within the alternate function splited for the value returned in response, now, after the function when I give console.log returns…
-
2
votes1
answer1332
viewsHow to change the date format in java script?
I’m taking the date informed by the user, who selects from a datepicker. In the form the format is displayed right dd/mm/yyyy, but the problem is when I take the date to play in a variável, she…
-
2
votes2
answers25433
viewsDisable Access-Control-Allow-Origin in Chrome and Firefox
I’m developing an app using Ionic on Macbook with OS X Yosemite. When trying to send data via POST or receive via GET to a remote server, error appears: Chrome: Xmlhttprequest cannot load…
-
2
votes3
answers11314
viewsif inside an ng-class in Angularjs
because I can’t do that next check on my ng-class? setClass(sessao.tipo_2 != 3D ? sessao.tipo_3:sessao.tipo_2)" according to short-if logic, that syntax is right not?…
angularjsasked 8 years, 8 months ago Michel Henriq 647 -
2
votes1
answer98
viewsChange Meta Tags dynamically Angularjs
I’m trying to change the content meta tag Keyword dynamically. Have: <meta name="keywords" id="selKeyword" content=""> and I’m performing as follows: $("meta[name='keywords']").attr("content",…
-
2
votes1
answer96
viewsAngularjs directive blocking ngModel
In an angular application, I designed a small system of tabs and in this system I implemented a directive to create the events of onclick on each of the tabs. basically the project looked like this:…
-
2
votes2
answers517
viewspickadate Angular - Translation
I’m using the Angular pickadate only it is in English, I need to leave in Portuguese, could anyone help? Follows code: $('.datepicker').pickadate({ selectMonths: true, selectYears: 15, language:…
-
2
votes1
answer773
viewsHow to make this directive return in ng-bind the sum of the results?
angular.module( 'isfModFinance', []) .directive( 'isfModFinance', function() { var validElementScope = angular.element('<div>{{ model.input }}</div>'); var validElementTotal =…
javascript angularjs angularjs-directives angular-moduleasked 9 years, 2 months ago Ivan Ferrer 12,096 -
2
votes1
answer126
viewsAngularjs, after select, save to another table
I created a function called buscarCep() which returns me the following object: address_codigo: 453114, bairro_codigo: 15698, address_cep: 17052330,... I have another function called salvar, where…
angularjsasked 8 years, 7 months ago Celso Lisboa 71 -
2
votes2
answers122
viewsUse token to access a platform
I have a web application and am accessing through an APP this way: .controller('LoginCtrl', function($scope, $ionicPopup, $state, $http) { $scope.data = {}; $scope.login = function() {…
-
2
votes2
answers2057
viewsConsuming Json with Angularjs
I’m trying to access a EndPoint through the Angularjs. This is my Service: angular.module('empresa-view') .factory('empresaService', ['$resource', function ($resource) { return…
-
2
votes2
answers697
viewsProblem with Utf 8 in reading txt file
I am using the following directive for reading txt files, however the texts are coming out broken. http://jsfiddle.net/alexsuch/6aG4x/…
-
2
votes1
answer954
viewsHow to show data from a Session in Angularjs?
I’m making a mobile app I already have login working and saving the values I want in Sesssion now I don’t know and how to show these values in the page after login. Controller…
-
2
votes2
answers1351
viewsCheck if a record came back-end null in Angular
I have a modal where I have two text inputs: CPF and Senha. In the input of CPF have a ng-blur who makes a Requisition GET every time I change fields. If I type a CPF that exists in the bank he made…
-
2
votes1
answer1389
viewsHow to remove the hashtag (#) from the URL?
By default Angularjs formats the URL as follows: http://dominio.com.br/#/login How do I leave it this way? http://dominio.com.br/login
angularjsasked 8 years, 5 months ago Pedro Camara Junior 6,637 -
2
votes3
answers436
viewsDoubt about changing variable in another Angularjs controller
I have a screen composed of a side menu (controller1) and a menu at the top (controller1). By clicking on the top menu link, the application loads information in the side menu as well as the page in…
angularjsasked 8 years, 5 months ago Diogo Soares 158 -
2
votes1
answer247
viewsProblems passing a list of objects to another list
I need to pass, a list of objects from one table, to another list of objects from another table, I’ve been able to find the information, but I can’t save them. Ex: I have a table of people, in case…
-
2
votes1
answer969
viewsTable paging with Angularjs
I was trying to put a pagination in my table, after a help I managed to partially solve the problem, but it was not the way I expected. I can get the currentPage every click on <pagination>…
-
2
votes1
answer348
viewsHow to put default value on input type Hidden in Angularjs with Ionic?
Good night, I have a mobile app, I’m submitting a form with a input type hidden but I want that input to have the value passed from another controller but I’m not getting through I tried ng-init but…
-
2
votes1
answer63
viewsPlay! Framework - How to load public files (js, css, img) once?
Hello, I started using Play! Framework a short time with Angularjs, and I’m having problems to use Angularjs services, because if a variable in a page and when I consult this variable in another…
-
2
votes1
answer140
viewsAdjustable and angular API
I am trying to make a request using angular connecting to the REST API built in Laravel. XMLHttpRequest cannot load http://localhost:8000/rest/v1/entidades/licitacoes. No…
-
2
votes1
answer1354
viewsConsume a Restful Service with Angularjs
I did a project in eclipse with a service Rest in java, if I run directly in the browser my service it returns my data right: http://localhost:8080/Agenda/rest/Agenda/getLista Now I want to consume…
-
2
votes1
answer217
viewsClient sending String[] instead of Bigdecimal to server when changing
When it’s a re-registration works peacefully, the problem is in the alteration. I own an object To who is the master, another object B which is a ArrayList and detail of the master To and finally,…
-
2
votes1
answer900
viewsHow do I call a right phone number from my ANGULAR JS AND IONIC app
I have an Ionic + Angular Js application that receives the data from the database and in these my data has the phone number as I do when clicking on it calls straight from my application. I…
-
2
votes1
answer139
viewsHow to slide text inside an input in Hover?
I have an input with a fixed width, but sometimes the content exceeds the width of that input. Somewhere I saw a solution that by hovering the mouse(Hover) in the input the text inside the input…
-
2
votes1
answer119
viewsIonic and Angularjs: How to filter repeated names in ngRepeat
How to filter, with Ionic and Angularjs, repeated names in my ng-repeat? I’ve used the ui.filters and the unique only works when there are no routes, ie on Websites in mobile applications does not…
-
2
votes1
answer299
viewsHow to display an Enum item on my table using Angularjs?
I have a table where I make a ng-repeat, hitherto normal. <tr data-ng-repeat="item in itemsconfiguration"> <td>{{::item.Description}}</td> <td>{{::item.Order}}</td>…
-
2
votes2
answers367
viewsUser authentication with $rootScope
I am developing a system where depending on the level of the user it is redirected to a page .run(function($rootScope, $location, $http, config) { $rootScope.$on('$locationChangeStart',…
angularjsasked 9 years, 1 month ago Luiz Fábio 333 -
2
votes2
answers57
viewsHow to display the sum of an X value where you have the same name?
Hello, let’s assume I have an object that has the following values var json = [ {"nome":"Coisa A", qtd:2}, {"nome":"Coisa A", qtd:3}, {"nome":"Coisa B", qtd:5}, {"nome":"Coisa B", qtd:7} ] Well, I…
-
2
votes2
answers387
viewsAngular $timeout or Javascript timeout?
I’m a beginner in Angular JS. I realized that we have a service in Angular called $timeout. I was curious to understand why this service exists, since Javascript natively has the setTimeout. What is…
-
2
votes1
answer305
viewsSPA with ui Router Angular JS files very large
Talk guys. This is a conceptual doubt. Recently I started to develop a SPA application (Single Page Application) making use of the partial rendering concept, using ui Router (more information about…
-
2
votes2
answers721
viewsSave $Scope from page with Angularjs
I have a screen where some functionality is done via ajax on the page, so the user can make filters, etc; By checking the result he wants, he can click on a link that will redirect him to a new…
-
2
votes2
answers1831
viewsProblem placing a background image in only one view
I have a small system in Angular where I have a login screen: But when I try to put a background image the result is not as expected: I’m doing it this way: <div class="background"> ../Código…
-
2
votes1
answer136
viewsLoad json on demand
I’m a beginner in angular and I’m making a small application that consumes a json, only this json is very large and I wanted to load it on demand. I’m using the concept of SPA and use tbm the…
angularjsasked 8 years, 2 months ago Elias Faiçal 21 -
2
votes1
answer181
viewsIonic audio capture
I made an app that captures audio by the native recorder of the phone, now I needed to take these media, how can I get this media from the phone? I did the following controller to capture…
-
2
votes1
answer58
viewsUi-router for systems with many modules
I came across a problem I have a Controller called Ordercontroller which is in two modules, Sales and Supply. When I route to the screen that will use this controller how can I define which of the…
-
2
votes1
answer447
viewsBuild Ionic app for older version of Android
I made an app with Ionic, and when climbing to the play store, it was enabled to Androids > 4.1 , except that the app is very simple, practically only query the database. Can anyone tell me if…
-
2
votes1
answer286
viewsHow to create a js function directive
I have a function to validate date: function validateDate(id) { var RegExPattern = /^((((0?[1-9]|[12]\d|3[01])[\.\-\/](0?[13578]|1[02])…
-
2
votes1
answer512
viewsPass values between directives
I’m starting with angular and have a question. I have the following scenario: I created a directive with responsibility to show message on the screen. Below her code. message js. "use strict";…
-
2
votes1
answer207
viewsAngularjs: how to avoid calling the route in the first page load
I need to get the page fully loaded, without calling any routes, when the user accesses through the direct link. The problem occurs when the page loads, Angular simply reads the path of the URL and…
-
2
votes1
answer82
viewsAngularjs - modal inserts template with radio button options
I have a button that opens a modal, where words will be typed separated by commas that will become the radio button options on the main page. When saving the modal you must insert an HTML template…
-
2
votes1
answer262
viewsAccess hours and minutes with Angular Timer
I want to take the data of hours and minutes from the Angular Timer and play in a variable to save in the bank, as I do?
angularjsasked 8 years ago Fernando Zabin 707 -
2
votes4
answers3805
viewsHow to order an array dynamically with Angular JS?
I have a list of tasks. The list starts with unfinished tasks (task.done == false) first followed by completed tasks. However, when I select a task and select it as completed (task.done=true), I…