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
answer1094
viewsShare object between two controllers in Angularjs
I’m studying AngularJS and I’m trying to make a CRUD simple, however I am not able to have the same object of my listing for my form, that is, at the time you click the edit button go to the form…
javascript java angularjs angularjs-scope angularjs-factorysasked 8 years, 4 months ago Felix Ferreira 13 -
1
votes2
answers404
viewsConsuming Webapi by Angularjs
I have a POST method in Webapi, and this defined the Routeprefix of the Api, the Route of the POST method and Cors is enabled. [RoutePrefix("api/v1/crm")] [EnableCors(origins: "*", headers: "*",…
-
1
votes1
answer87
viewsHow to get the index of a populated list in the change of a select using the ng-options of Angularjs
How do I get the index of an item selected in my select? Html <div class="row container"> <div class="col s12 "> <h4>Cadastrar Pedido</h4> </div> <form class=""…
angularjsasked 8 years, 4 months ago Al Unser Albuquerque 965 -
1
votes3
answers912
viewsAngular Scope with apply no ng-init
Hello, I have the following problem, I have this function that receives data from an internal database and stores the information on $scope.dados, I can show the values of $scope.dados usually on…
angularjsasked 8 years, 4 months ago joao paulo santos almeida 486 -
1
votes2
answers149
viewsFullpage JS, running on different pages
I’m developing a project in Angularjs and I’m using Fullpage.js to scroll the pages. So far so good, the problem is the following: As I have internal pages, I also need to use the scrolling of the…
-
1
votes2
answers35
viewsRun code before starting services - Angularjs
Is there any way to run a code that runs before services? Because I want to use the function $http.defaults.headers before starting the services so that I can instantiate the header in all services…
angularjsasked 8 years, 4 months ago Michel Henriq 647 -
1
votes1
answer273
viewsSyntax doubt in Angularjs
I’m starting in Angular and in some cases I saw that you pass parameters in the bracket of the "module" and in other cases in the "Function", and in the function I’ve seen 2 forms of declaration.…
-
1
votes1
answer138
viewsHow to handle my app routes with Express
Guys, I’m using a framework for the front of my app. He keeps listening and whenever you click on a link he returns the page via Ajax request. Note: I am using Angularjs. With Angular I can treat…
-
1
votes1
answer117
viewsdoubts with if Else in java script
I’m using Angularjs and I have this method $scope.login = function (email, usuario, senha) { $http.post("/Login/login", { email: email, usuario: usuario, senha: senha }) .success(function (data) {…
-
1
votes1
answer76
viewsHow to apply a scope to a dynamically created element in Angularjs?
At the angle, I realize that the scope of the Controller is not being applied in a particular piece of code, when it is created dynamically. For example, I have a certain content within a tag…
-
1
votes1
answer193
viewsShow username responsible for such ID in html
I am making a very basic forum and I have a very easy question, but I am beginner at the angle and it is killing me. When creating a new topic, this topic creates an ID ie each topic has its own. In…
-
1
votes2
answers887
viewsTransmit information between screens in Ionic with Angular?
Talk personal, all right? I’m going to describe the process that’s leaving me in doubt. I have a list of elements that is filled with data I have. When I click on a list item, I want the app to open…
-
1
votes0
answers86
viewslocalStorage some when I refresh the page
I’m doing the following operation: I get the typed text in a <textarea> and make a push() to add it to the array; then saved to localStorage. I get my values back, I make one split() the way…
-
1
votes1
answer4234
viewsHow to get input text value with Angularjs?
I’m trying to take the value of an input and save it to a variable so I can use the result as a value in LIKE, of a consultation of sqlite. Only I came across a small problem: when I try to get the…
angularjsasked 8 years, 3 months ago Altemberg Andrade 633 -
1
votes1
answer251
viewsHow to perform a callback after an "ng-show" or "ng-Hide"?
I’m using the angular along with the ngAnimate. With the ngAnimate it is possible to add some css classes to the element it applies to ng-hideor ng-show to apply a transition animation. I need to…
-
1
votes2
answers323
viewsVariable loses value after leaving Promisse
Hello, I’m having the following problem, I have a variable that should store the data coming from a promisse, so that this data can be used in other functions, But for some reason the variable keeps…
-
1
votes1
answer141
viewsInheritance does not work when using angular-ui-router state
I have the following configuration for the routes: $stateProvider .state('login', { public: true, url: '/login', templateUrl: 'app/src/components/bo/areas/login/login.view.html', controller:…
-
1
votes1
answer20452
viewsCannot read Property 'length' of Undefined
**HTML Binding** {{total() | currency: 'R$ ' : 2 }} **Função** $scope.total = function(){ for (var i = $scope.custos.length - 1; i >= 0; i--) { total += $scope.custos[i].valor+total; } return…
-
1
votes1
answer104
viewsProblem using Sql LIKE in Angularjs
I have been a few days having trouble searching my app using AngularJS and today I was able to discover the reason: During the consultation SQL with LIKE, it is simply not receiving the parameter as…
-
1
votes0
answers198
viewsAdd items to the local database as you select from the list
I want to make a list of products and as the person is clicking on Add (+) or Decrease (-) go showing the quantity in (+) or (-) and when clicking on "Continue Ordering" Register all items listed on…
-
1
votes1
answer1043
viewsExtract objects in Ionic
I’m trying to get the selected data from a Checkbox in the Ionic. My View is like with the CheckBox: <ion-view view-title="Comprar Bebidas Adicionais" hide-nav-bar="false"> <div class="bar…
-
1
votes1
answer649
viewsSwitch from view to controller (Ng-Click)
I’m using ng-route to develop a single page application with Angularjs+Laravel. I’m having a problem with the switching view part through ng-click and the controller. I have a button in a view, and…
-
1
votes1
answer1345
viewsHow to add or remove amount of items in an Ionic List
I am trying to add and remove quantity in a list of products, as shown in the image: This is the view of this screen: <ion-view view-title="Comprar Bebidas Adicionais" hide-nav-bar="false" >…
-
1
votes2
answers1391
viewsHow to pick up and store an array of data only if Quantity > 0 in Ionic or Angular?
I would like when clicking the "Continue Ordering" button to pick up only the items with Quantity > 0, store in an array of new objects. My View: <ion-view view-title="Comprar Bebidas…
-
1
votes1
answer65
viewsBring in smartphone contacts
I made an application to bring the contacts from the device. My doubt is the following when I bring the phone it brings me an array, with type:mobile, value="" with the phone, how can I do a…
-
1
votes0
answers383
viewsAngularjs $http.post taking too long
I have a web API made in php that accesses a Mysql database that has return in JSON and I am using Ionic + Angularjs to develop an App that will use this API. In my file services.js I created a…
-
1
votes0
answers617
viewsI cannot put the login screen outside the ui-view that is in index.html, I am using angular-ui-router
Code from the app.js var app = angular.module('app', ['ngRoute','ui.router','ui.bootstrap','ngSanitize','ui.select','ui.date','dialogs.main', 'angularUtils.directives.dirPagination']);…
angularjsasked 8 years, 2 months ago Danilo Barbosa 11 -
1
votes2
answers843
viewsInsert into HTML and with Angularjs functions
People have problems when I insert one HTML containing a module ng, and when I click to run nothing happens. See Code: //HomeCtrl.js module.exports = function($scope) { // Create Note $scope.create…
angularjsasked 8 years, 2 months ago iLeonardo Carvalho 561 -
1
votes1
answer142
viewsIonic show lautitude and longitude in view
I’m not being able to show my location in the view, but using the.log(long) console I can see my location from the console. Where can I be missing? ` .controller('Geoctrl', Function ($Scope,…
-
1
votes1
answer118
viewsView - Single Page Application
When I discovered the SPA style I was very excited, but I went to research on some frameworks that do this, I saw that are mvc’s, but totally aimed at the client(front) and this did not like much,…
-
1
votes1
answer103
viewsuibModal does not show the items in ng-repeat
I’m using $uibModal to display a list of options for the user, but is not appearing in the modal. Controller app.controller("ConsultaFiltroController", function($scope, $http, $uibModal, $log) {…
angularjs bootstrap modal angular-ui angular-ui-bootstrapasked 8 years, 2 months ago Luiz Fábio 333 -
1
votes1
answer76
viewsRequest Angularjs being executed first incorrectly
In a controller, I have two HTTP requests: function findProfessionalEmail(professional) { EmailHunter.findProfessionalEmail(professional.company_name, professional.first_name,…
-
1
votes1
answer466
viewsHow to grab image from camera in Base64 (using phonegap) and send to server via JSON with Angularjs?
I’m getting the hang of imgEnviar, who receives the base64 coming from the camera, and inserting into the JSON and sending to the server with $http with Angularjs. I want to know if it’s really…
-
1
votes1
answer420
viewsHow to close uib-Popover by clicking out?
I’m trying to utilize the uibPopover Angular UI Bootstrap to display a field input. The problem I’m having is that by clicking outside the Popover, it’s not closing. I’ve already looked for some…
-
1
votes0
answers241
viewsHow to deploy user from all devices?
I am working on an application and this doubt arose me while doing some tests, where I ran some changes, such as password change, on the computer but my user remained logged in to the mobile phone.…
-
1
votes0
answers273
viewsCalling PHP files and functions via Angularjs
Before going into the matter, I would like to clarify that I already have a working method. However, as I do not possess as much knowledge in backend, more precisely in PHP, I don’t know how…
-
1
votes0
answers138
viewsUsing jQuery + Requirejs + Angularjs correctly
I’m trying to get the file themes/cms/build/js/main.min.jsfunction properly after being charged by Requirejs, but I haven’t been succeeding. The file is loaded, some functions works like…
-
1
votes1
answer51
viewsDisplay which directives are being used on the page
Is there any way we can find out which directives are being used on a page ? Below follows an example <div> algumas coisas ... <minhadiretiva></minhadiretiva>…
-
1
votes1
answer44
viewsMerge controllers
I have this controller that sends a normal Error or Success notification $scope.add = function () { if(!$scope.name || !$scope.url ){ $scope.success = null; return $scope.error = 'Preencha todos os…
-
1
votes2
answers110
viewsProblem with regular expression in Asp.net with Angularjs(1)
On this site, I got this regex: @"^\(?\d{2}\)?[\s-]?[\s9]?\d{4}-?\d{4}$" Then I tried to adapt to my reality, my rule which is: Only accept digit(number) in the input. I’m not there those things…
-
1
votes0
answers104
viewsHow to send messages using Angular and socket.io?
I followed in the footsteps of this video and I was able to make a web messaging app. Now, I’m trying to implement these codes in my Ionic messaging app. But when trying to send a message, this…
-
1
votes1
answer870
viewsHttp method post, date parameter is passing always empty (Angularjs + Laravel 5.2)
I am using the Angularjs + Standard to build my application. The point is, I own $Cope.frequencias, which contains some information about a student’s attendance. I made an angular foreach to send…
-
1
votes1
answer194
viewsReturn Json - Angularjs
I am creating an Asp.Net Web.API application and the return of service is in Json. So far so good, it happens that the main object (Companies) is returning an internal object - citiesFiliais…
-
1
votes0
answers210
viewsHow to dynamically initialize a Select2 in Angularjs
Hello guys I am using the plugin of Select2 in my project. I need to create several selects2 dynamically, by angular. I have an object array (with id, name) and accurate from an event, in a function…
-
1
votes2
answers655
viewsHow to Catch JSON Data with Angular
I am studying angular and I am trying to receive data in JSON format from a webservice, but is with the following error: Xmlhttprequest cannot load http://localhost:8080/Newspaper/data/newspaper. In…
-
1
votes1
answer100
viewsArray repeats simultaneously in json
I am trying to make a calendar where I will get the information in a request Rest in Angularjs. What I want to create a calendar where you can record your events. With the json date attribute he…
-
1
votes0
answers242
viewsHow to exchange Angularjs avatar using Storage image?
Creating an app with Angularjs and would like the user to choose a photo of his Image Gallery to insert as an image of his profile, I want to search the image in the internal memory. It is possible?…
-
1
votes1
answer1330
viewstake input values
I needed to create a code to generate inputs dynamically, below is the code: HTML <div id="divProdutoBase" style="display:none;"> Telefone: <input type="text" id="produto[]"…
-
1
votes1
answer271
viewsVery large select box content
I have a selectbox <select> HTML that has a very large content, are more than 1000 records that must be loaded, only that in performance issues I believe it is getting bad. I would like some…
-
1
votes3
answers1544
viewsHTTP post in Angular
I am trying to access a web service that receives in Header "Device" and in Body "User and Password", it returns me json in this format: { "IdUsuario": 2, "Usuario": "Fulanu", "Token": "1f7b87d7" }…