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
-
4
votes4
answers4583
viewsCheck for image return via Javascript
How to check if the image returned with error 404 via javascript. Below an example code, I want to check if the get of this image is 404. If I want to put a certain image, if it is not going to…
-
4
votes2
answers8268
viewshow to have the current date with Angularjs
How to have the return of the current date via javascript, in the time-label class can use jquery or angular. The idea is to have the last update date. If anyone knows I’m grateful. You cannot enter…
-
4
votes2
answers888
viewsAre there BI/OLAP tools for the MEAN.JS platform?
Someone can indicate me a BI/ OLAP framework or at least a Chart Engine, preferably open-source, that integrates properly the platform MEAN.JS or MEAN IO architecturally SPA - Single Page…
angularjs node.js mongodb express business-intelligenceasked 10 years, 1 month ago Fernando Santucci 161 -
4
votes1
answer885
viewsApply mask to dynamic fields generated after page onload
I am using a directive for Mask in monetary field, the work is performed on the screen the problem is when I insert a new item ng-repeat inserts new fields without the Mask, I reference the class…
-
4
votes1
answer130
viewsHow to resolve the conflict between Angularjs and Django?
What is the most efficient way to solve the conflict problem between Django and Angularjs when using {{ }} in the templates?
-
4
votes2
answers621
viewsProblems with $http and ng-repeat Beginner Angularjs $$hashKey
Hello I’m a beginner in Angular and I’m finding it very cool, my problem is this: I have an ng-repeat that works fine when I get the data source of a javascript variable like this: var alertsq = [ {…
-
4
votes1
answer896
viewsAngular Directives with object-constructing methods
I am trying to create a directive that is an input that provides an object in $Scope only if it is successfully created by its constructor method. I want the value only to be assigned to the…
-
4
votes4
answers1081
viewshow to filter an ngRepeat loop according to the value of one of the contents of an array
Well, the content of a page on my site is generated from the following JSON template: [ { "company":{ "name":"Nome do Cliente", "url":"#" }, "client":{ "name":"Projeto", "url":"#" }, "tags":[…
-
4
votes1
answer351
viewsDifference between Cope declaration
Is there any difference in that Cope statement mentioned in the angular documentation: myApp.controller('DoubleController', ['$scope', function($scope) { $scope.double = function(value) { return…
-
4
votes1
answer2727
viewsSelect list option selected with Angularjs
I’m implementing a select list that has as options the Brazilian states. I would like to return the selected value according to the return of a web service. For example, if the service returns RJ…
angularjsasked 9 years, 10 months ago Paulo Henrique Queiroz 419 -
4
votes1
answer1419
viewsHow do I access a dynamic id via a directive?
Problem: I need to within an Angularjs directive, access a dynamically mounted id within an ng-repeat, and thereby manipulate the class of a specific item. Briefly, I’m using the bootstrap accordion…
-
4
votes3
answers1823
viewsHow to implement spinner loanding in Angularjs?
I’m trying to implement spinner loanding in my project in Engineering, it’s been a while! the spinner should run whenever a request is executed. What library do I use?
-
4
votes3
answers2889
viewsRunning my Angularjs application on some server
I have a front-end application consuming an Rails api, but I’m new to this idea of separating the front-end from the back-end, my api runs on localhost:3000, and my front is simply a folder that I…
-
4
votes1
answer92
viewsIs it possible to authenticate with Angularjs?
Is it possible to authenticate with Angular and recover the logged in user? If possible what best practice to do?
angularjsasked 9 years, 1 month ago Jose Vieira Neto 2,560 -
4
votes1
answer136
viewssynchronize two screens
I am starting to develop a scheduling system in Rails and I have the following problem: Let’s say I have two open screens in my book: 1.1 - First screen opens on doctor’s computer. 1.2 - Second…
-
4
votes1
answer984
viewsOpen camera inside a div [Ionic]
I’m developing a small application with Ionic, which will be built for android. I need to access the device camera in the app for video, but when I do, the camera app opens from the outside. I would…
-
4
votes1
answer387
viewsFile . json is not created in Angularjs
I created a controller and a service. Follow them, to exemplify what is happening: Controller eventsApp.controller('EditEventController', function EditEventController($scope, eventData){…
-
4
votes2
answers479
viewsHow to make a dynamic meta descripition in Angularjs?
How to do to the description, who is in a Array in the controller, is rendered to the <meta name="description" content="{{metadescription}}"> , which is in index.html, and can appear…
-
4
votes2
answers4721
viewsAngular JS - Take the value sent by the select of a directive
I have a directive that returns me a select that when selected I want to take the value of the code by the controller and make an http request. Plunker: http://plnkr.co/edit/fnCJj15XJN1kQvKq1OtZ…
-
4
votes2
answers392
viewsVariable value Undefined js
I am developing a mobile application with Cordova, in the mobile version there is a BD that keeps checking if there is any change in online BD, if there is it updates in mobile follows below my…
-
4
votes1
answer388
viewsError importing Dynamic Json via Angularjs
Hello, I’m having trouble importing this Json and others, I don’t know what I might be doing wrong in that... <html> <head> <script…
-
4
votes3
answers239
viewsjquery function does not work with routeprovider Angularjs
I’m making a web application with Angularjs and I did this routeprovider for single page angular.module("app").config(function($routeProvider){ $routeProvider.when("/Proposta", {…
-
4
votes1
answer225
viewsProblem with slidebox and ng-repeat in Ionic framework
I’m trying to create the slidebox of the Ionic framework with data returned from the database and the slide is not appearing on the screen. I’ve looked for the solution to this in many places but…
-
4
votes1
answer391
viewsJquery + Angular form do not pass an input value
I’m doing a post with Angular. It works normal when I manually type the values in the form, but it gets a value via jQuery $("#id_veiculo").val(valores02.id); and this value appears correctly, but…
-
4
votes1
answer334
viewsError while trying to consume Webapi service
since this morning I try to catch a JSON that a WebAPI available. I first tried with insira o código aquiAngularjs and was not evolving, so I went to the classic Jquery/Ajax and yet I did not…
-
4
votes3
answers481
viewsHow to make preventDefault links at the angle?
I’m using a function called with ng-click, via a link (Anchor). However, because of the hash #, the page is "skipping" every time I click on this link. This is my code: <a…
-
4
votes2
answers2945
viewsPopular a table with form data in Angularjs
I am learning angular.js and am having difficulties with the following code var myapp = angular.module("myapp", []) myapp.controller('controller', function reset($scope){ $scope.reset = function(){…
-
4
votes3
answers1233
viewsPass directive inside template
I have the following scenario: I have a directive called modal and I want to pass another directive as content, the code is as follows: maintain-supplier-formulario.js "use strict";…
-
4
votes4
answers6169
viewsAngular js Array within another array
How do I print an array within another array, in the.log console it comes like this: Array[5] 0:Array[10] 0:Object 1:Object 2:Object 3:Object 4:Object 5:Object 6:Object 7:Object 8:Object 9:Object…
-
4
votes1
answer64
viewsDoubt - Angular Controllers
I’m studying Angular and I have a question. I’m creating an application, and wanted to organize the controllers by creating one for each view (template). Exemplo: Tela Cadastro -…
angularjsasked 7 years, 11 months ago Julio Rodrigues 355 -
4
votes2
answers8606
viewsWhat is the difference between the angular foreach and the javascript map function
I would like to know the difference between using the angular.forEach and the function map javascript. ex: angular.forEach(meuArray, function(itens) {...}) meuArray.map(function(itens) {...});…
-
4
votes1
answer659
viewsAngularjs - Modularize a code to be reusable in multiple projects
Next person, I am developing a webapp where I have a very wide administrative area, with several functions. In another project I closed a few days ago, I also requested an administrative area with…
angularjsasked 9 years ago celsomtrindade 8,038 -
4
votes1
answer1322
viewsHow to change the color of buttons when selecting a radio input?
I have this form When you check the "Bills to Pay" radio input, I need the buttons to turn red. I’m using Angularjs, so I used ng-if, but the code was quite extensive. How could I do it in a simpler…
-
4
votes1
answer112
viewsAngularjs in "Big" project
I read by the literature that Angularjs is made for single page. And if I use the same for a larger application, with several screens. What would be the negative impacts of using Angularjs? And if I…
-
4
votes1
answer87
viewsDebug with min files in Angularjs
I created a task at Grunt to automatically the concat and uglify in my files .js Angular to improve performance and also to avoid inserting a new file every time I create a controller, for example.…
-
4
votes1
answer556
viewsUsing Angular WYSIWYG editor
To kind of starting now my studies with Angularjs. Well, I’m trying to add a WYSIWYG editor ("What You See Is What You Get"). to my script using angular 1.6.1 but am not getting the desired result.…
-
4
votes1
answer291
viewsWhy do some angular services use dollar ("$") at the beginning?
I used some libraries written for Angularjs where Services were always written with a $ at first. For example, in Angular Material we have the service $mdDialog, and in Angular Bootstrap we have the…
angularjsasked 7 years, 9 months ago Wallace Maxters 102,340 -
4
votes1
answer933
viewsConvert $Scope to string in ng-model by Angularjs
I am in doubt, according to the tutorial of Angular the ng-model only accepts one $scope if he goes string, giving: Error: [ngModel:numfmt] expected `1234` to be a number Possible then convert to…
-
4
votes1
answer2455
viewsRest API and Sessions, how does Login work?
I have always worked with PHP/Mysql and Javascript/jQuery. I have always connected PHP to the direct database, and I use login sessions. I am currently working on a project where I use Angularjs for…
-
4
votes1
answer1193
viewsHow to use a font-awesome icon with Angular Material button?
In the Documentation of Material Angular there are examples of using icons on buttons, through an SVG icon. Example: <md-button class="md-icon-button md-primary" aria-label="Settings">…
-
4
votes3
answers4406
viewsCheck empty object Angularjs
I have some fields where I pass some filters for a query in the bank. I would like to check if the object is empty, so the query would not be held. I tried that way: function isEmpty(obj) { for(var…
-
4
votes1
answer1197
viewsHow to send Angularjs data to an ASP.NET MVC backend?
What would be the best and simplest alternative? I have the Web Api: using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using…
-
4
votes1
answer924
viewsHow to query a web api by passing parameters using Angularjs?
I have the current script: (function () { 'use strict'; var numeros = angular.module("myModule", []) .controller("myController", function ($scope, $http, $log) { var sucessoCalBack = function…
-
4
votes3
answers2578
viewsPass Token by header to each Angularjs request
I am implementing tokens in a system, I already have the token generated and saved the same in sessionStorage. How can I create a service or Interceptor to put this token on Header of each request?…
angularjsasked 8 years, 10 months ago DiegoAugusto 8,694 -
4
votes3
answers899
viewsAngularjs Date Subtraction
Good, How do I subtract a day with the angle old.endDay = start.startDay; Example: startDay = 01/05/2017. endDay = 30/04/2017. I’m sorry I said that wrong. actually I wanted to strip one day of…
-
4
votes1
answer681
viewsHow to check if a file is an image?
I am working on an application using ASP.NET MVC and Angularjs and need to ensure that the file upload will only be image files, even if someone sends an extension of another type of ". jpg" for…
-
4
votes2
answers6058
viewsHow do I clean fields with angular?
I want to be able to clear the fields after Submit and also apply the action at other times, for example when clicking the "back" button used delete $scope.NomedaNgModel; But he doesn’t clean…
-
4
votes1
answer1072
viewsConfirmation dialog box using angular
How do I stop instead of calling this default browser Alert(addition confirmation) to call a screen set by me? or manipulate this Alert and be able to apply css.…
-
4
votes2
answers2135
viewsKey code does not hold the ESC key
I’m doing a function, so that when you press a key on the keyboard, it performs another function. With the keys of letters, numbers and even Enter works. But the ESC key does not work. Has anyone…
-
4
votes2
answers293
viewsChange System Logo
I am creating in a system that I am developing for our client, a function where it allows the same to upload the logo and cut the same, then when it saves I am trying to load the image that was…