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
answer254
viewsAccess Function declared in the Directive controller by transcluded objects
I am trying to create a Directive that has its Scope isolated, but that has some functions that she will be responsible for doing p/Directive. It is a div that contains a table and an "Add" button…
-
2
votes1
answer1771
viewsObject with list of objects within Javascript
I am using angular to make a form that contains multiple checkboxs (using angular-material), this form sends the values to the controler, which are received as follows: I need to take this data (all…
-
2
votes1
answer543
viewsInterface GET and POST method with Angular + Node.js
I’m having some questions as a beginner and I wanted to help you guys out. I created a Home Automation, based on Microcontroller + Node.js + Angular.js. Angular.js communication with the…
-
2
votes1
answer1714
viewsHow Promises works in Angularjs
I’m having a little trouble understanding the workings of Promises of Angularjs. I have the following code: function validateUser(name, pw) { var status = ''; var data = {login: name, senha: pw,…
-
2
votes1
answer918
viewsUpload image with form in Ionic or Angular
I want to take images of the device and upload the image to a certain path on my server. I’m trying to use the Cordova Image Picker with Base 64. In my controller I use:…
-
2
votes3
answers88
viewsInsert non-existent months into the array
I’m putting in a array total sales value per month. The code is working perfectly, but I need the javascript check which months are not in this array and fill it in order 1 to 12. For example: The…
-
2
votes2
answers137
viewsOpening another page with Angular and Sweet Alert
I’m trying to open a javascript page with Angularjs. I need that when I click on Bt it asks a question and depending on the result, open a link with the url true or false. I can do this, but the…
-
2
votes1
answer3906
viewsAngularjs Filter with Argument Array
I would like to check a way to add filters to a table of records (ng-repeat) through an array and not just text. https://plnkr.co/edit/FRaceRkO4uBSyfZYay6e?p=info Note: I am using $filter to filter…
-
2
votes1
answer217
viewsControllers in includes Angularjs 1
I am having a very strange problem and I would like if someone understands my doubt, could explain to me why it happened. My application is a player and this one is composed by some timeouts for…
angularjsasked 8 years ago Paulo Gustavo 1,319 -
2
votes3
answers1003
viewsPass value to service Factory in Engineering
I need to pass two values (page and total) of $Scope that are in the controller to a Factory service, how do I? Is there any good practice to do this? Service:…
-
2
votes3
answers3228
viewsHow to change the CSS style sheet dynamically with Angularjs?
I’m having a problem with the customization of a CSS, Angularjs does not allow me to write a code snippet as follows: <style> .btn-n { min-height: {{botao.altura}}px; min-width:…
-
2
votes1
answer210
viewsTrouble at startar Gulp serves
Good afternoon, I’m creating a portal in Angularjs and Node. After installing npm in the workbook npm install and Ben bower install The tutorial asks for the command to be done gulp serve, but this…
-
2
votes4
answers7208
viewsHow to group an object array in javascript (Angular)
How to read an array of objects and returns only objects that contain the same value in several attributes? I made this object array as an example. var arrayDeObjetos = [ {"dia":1 ,…
-
2
votes1
answer313
viewsSelect with Angularjs
In an IONIC/CORDOVA app using anglarjs I found myself with the following problem: The angular mounts the select leaving an empty option at the beginning. example: JSFIDDKE When selecting one of the…
-
2
votes2
answers292
viewsWhy doesn’t the data appear on the screen using firebase and angular?
Good afternoon, you guys, Something that should be simple and I can’t. I’m checking my database at firebase, where you have two records stored. I do the search and appear returns the data in the…
-
2
votes2
answers1667
viewsHow to do a simple "ping" on external sites returning status: 200, 400
I’m a beginner in Javascript, Angularjs and jQuery. I have already broken my head here and I could not solve the following solution using as a basis the Javascript: I want to make a list of the…
-
2
votes2
answers163
viewsController and service logic with Angularjs
I have some questions regarding the logic of the controller and service search functions. Follow an example of service: angular.module("myApp").factory("ProjetosAPI", function ($http, config) { var…
-
2
votes1
answer68
viewsIs it possible to manipulate a template of an abstract route, in other routes, dynamically?
At the angle I created an abstract route using $stateProvider. This route is where you have the side navigation menu and two Toolbar, one with a few buttons, and the other search. I created an…
-
2
votes1
answer217
viewsForm field filled in, but given as $pristine
I’m making a $http request, the return is a JSON, assigned to the model ($Scope.developer), but the field is still set to $pristine. Data.post('getElaborador', $rootScope.codigo, 'Listagens').then(…
-
2
votes0
answers449
viewsPermission and user levels in PHP and Angularjs (JS)
I am developing an administrative panel where I have some users and these should have different permissions levels. At the same time, it must be something "dynamic" for there to be control of basic…
-
2
votes0
answers135
viewsFadein and Fadeout with Angularjs
I would like to know the best practice when showing warnings to the user, using Angularjs. My scenario is basically the following: I have a div that represents all CRUD validations, within my…
-
2
votes1
answer284
viewsHow to pick up php data passed by parameter with Angular
I need to take 1 data passed from the angular controller to my php file, as I do? app.controller("EditarPerfilCtrl", function ($scope, $http, $window) { var idempresa =…
-
2
votes3
answers752
viewsHow to format Date field in Ionic Form / Angularjs
I have a date field on a form that looks like this: <label class="item item-input item-floating-label"> <span class="input-label">Validade da Oferta</span> <input type="date"…
-
2
votes2
answers925
views$window.location.Reload()
I use Angularjs in a webapp, in this webapp I have implanted a map showing my clients from a marker. The map I’m using is Leaflet (http://leafletjs.com/) with a directive for Angularjs…
-
2
votes2
answers466
viewsHow to remove error 401 message from console with Angularjs/Javascript?
I get the following error message on my console: POST http://localhost:8080/minhaURL 401 (Unauthorized) I would like to know how to remove this error log from the console, because I’m already giving…
-
2
votes2
answers739
viewsMap Leaflet - Access extends
Hello, I’m using the directive "Angular Leaflet Directive" (http://tombatossals.github.io/angular-leaflet-directive/#!/) next to the Leaflet map. My question is the following, there is the…
-
2
votes2
answers2026
viewsHow to get id to edit data with Angular?
I need to get the account id that is displayed in the html below. And I need to take this id to my backend and bring the dice and edit, but I’m not getting it. Follows my codes: <div…
angularjsasked 7 years, 10 months ago GustavoSevero 2,567 -
2
votes1
answer133
viewsInjecting $state (ui-router) into $http Interceptor is causing circular dependency error, how to resolve?
What I need: I need when http request returns error 401 or 403 the user is redirected to login screen. Problem: The problem happens when I inject $state into my Factory, causes circular dependency…
-
2
votes1
answer443
viewsRender html from the database using angular 1.6.1
I have the following page using angular, jquery and bootstrap: var app = angular.module('tblModule', []); app.controller('tblController', function($scope) { $scope.testes = [ { "teste": 1, "oi": "O…
-
2
votes2
answers637
viewsInsert array within an angular scope
Hello, everyone, I’m a beginner in angular, and I’d like to know what I’m doing wrong here. Check it out: Every time I click on a button I want it to add some "modified" information of an object…
-
2
votes1
answer59
viewsAngular ui router plus PHP
Currently I have an array in php that I convert to JSON using json_encode json and generated smoothly. $array = array('a' => 'Olá mundo', 'b' => 'Olá Marte'); $array = json_encode(array);…
-
2
votes2
answers277
viewsWhat is this error that appears on the console, rotating angular?
I’m creating an angled web application and can’t make the login screen appear in index.html, out of which an error message appears in the console. Uncaught Error: [$injector:modulerr]…
angularjsasked 7 years, 9 months ago GustavoSevero 2,567 -
2
votes2
answers850
viewsHow to load a value in select
$scope.init = function() { $scope.modelo = {}; $scope.marca = {}; $scope.modelo = {}; $scope.modelos = []; $scope.marcas =…
-
2
votes2
answers42
viewsModifying my Isauthenticated value in Angularjs
When the token is different from null my Isauthenticated has to be positive, app.controller("HomeCtrl", function ($scope, $location) { let token = localStorage.getItem("token"); $scope.user =…
asp.net-mvc angularjs validation angularjs-scope tokenasked 7 years, 8 months ago Jefferson Souza 167 -
2
votes1
answer193
viewsJSON in PHP with existing fields printing as Null, how to resolve?
I have a SELECT that is not returning some fields, such as "Notes". In the following image I list the array and see that it is like "Null" the field remarks: My return SQL is this: <?php…
-
2
votes1
answer852
viewsAngular JS routes
good night! I’m new to single page application technology, and I’m finding it difficult to render my pages at Angular one, I have a button that when I click, fires a route, it tries to be loaded,…
-
2
votes1
answer208
viewsProblems using $state.go of the angular
I have the following code: .controller('cadastroCtrl', ['$scope', '$stateParams', '$http', function ($scope, $stateParams, $http, $cordovaSQLite, $window, $state) { $scope.emailCli = [];…
-
2
votes1
answer676
viewsHow to sort across multiple fields with Ionic and/or Angularjs from a JSON?
I’m trying to sort fields dynamically by Ionic and Angularjs. I started using the plugin Modal Select, with the button like this: <button class="button button-stable button-block icon-left…
-
2
votes2
answers202
viewsHow to work with the file:// and Angular protocol
I was wondering if it is possible to work with an Http:// request locally in my application and not on a local server, if possible how do I do this? (does not necessarily have to be with the file…
-
2
votes1
answer332
viewsAngular.js Directive with dynamic templateURL
create.directive('renderInputs', [ function(){ return { restrict: 'E', scope: true, templateUrl: function(elem, attrs) { alert(attrs.type); return '../templates/inputs/type-' + attrs.type + '.html';…
-
2
votes1
answer923
viewsSwitch with Angularjs
Good afternoon guys, next, I have a benefit column on a table, where the data is recorded like this: 1,2,4,8. So, each number of this corresponds to a benefit, I’m trying to return this data to my…
angularjsasked 7 years, 7 months ago Thiago Moreira 61 -
2
votes2
answers95
views -
2
votes2
answers58
viewsHow to read json in angular1?
I have the following json {"message": "457896","additionalData":{"google.message_id":"0:149534266","coldstart":false,"collapse_key":"com.ionicframework.lucasteste693113","foreground":true}} How can…
-
2
votes1
answer71
viewsDoubt with $http in Angularjs
When I do the get, I load it into an object the $Scope.contacts and can show it in my View of html. However, I can only access it within my function of then(function(){}), when I leave the part…
-
2
votes1
answer46
viewsProblem with howling
personal I’m having a problem related to angular router ui always when the use cannot make it work, I copy the code exactly the way it is in the git of uiRouter and it does not work, because the…
-
2
votes1
answer155
viewsSelect Md-option with ng-click
I have a page listing some job openings. Below these vacancies I have a form and in this form there is an option field to select the vacancy of interest. If the user clicks on the position of…
-
2
votes0
answers61
viewsI cannot make $http.post in Angular, and I am not returned any error
Despite not returning error, the POST seems not to be working. My code: // ADICIONA contato AO VETOR contatos $scope.adicionarContato = function(contato) { contato.data = new Date(); // REALIZA POST…
angularjsasked 7 years, 5 months ago Lucas Rosa 21 -
2
votes1
answer75
viewsI want to search information of a table with EF
I have the following form code: @model Domain.Entities.Tabela1 @using WebUI.HtmlHelpers @using WebUI.Extensions @{ ViewBag.Title = "Tabela"; Layout = "~/Views/Shared/_Master.cshtml"; } <article…
-
2
votes2
answers5057
viewsDate angle filter with mask 'dd/MM/yyyy HH:mm:ss'
I’m applying a filter on my page, it was working perfectly, only when I applied the mask to stay in the format dd/MM/yyyy HH:mm:ss he stopped filtering correctly, he understands that there is…
-
2
votes2
answers52
viewsError in Angularjs when save date, why?
I have the following HTML code: <form name="formProfissional"> <label>Data</label> <input class="form-control" type="date" name="dia" ng-model="agenda.dia" required>…
angularjsasked 7 years, 3 months ago GustavoSevero 2,567