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
votes2
answers380
viewsProblems with modals
I’m using the template at Angular. I need to open a page inside a modal, so I used a code that was suggested by the template support: <script type="text/javascript"> $('#conteudo2').on({…
-
1
votes0
answers48
viewsreturn JS method
I have the following method: $scope.upload = function (files) { if (files && files.length) { for (var i = 0; i < files.length; i++) { var file = files[i]; if (!file.$error) {…
-
1
votes4
answers536
viewsHow to share the $Scope variable from one controller to another with parameters in Angularjs
I have this: $scope.products = []; $http.get('app/components/job/controller/teste.json').success(function (resource) { $scope.products = resource; }); $scope.getIdJobs = function(getIdJobs) { var…
-
1
votes2
answers679
viewsocLazyLoad to load controllers from an Angularjs SPA
Hello, community! I wonder if it’s a good idea to use ocLazyLoad to carry the controllers an application (Single Page Application - SPA) of Angularjs. I’m using UI Router in place of ngRoute. The…
-
1
votes0
answers62
viewsGulp Concat does not work
Good morning. I am unable to concatenate the Angularjs files using the Gulp Concat module. I tried to change the directory file and it still doesn’t work. The problem is that I don’t see any error,…
-
1
votes1
answer618
viewsAngularjs generation of PDF
Good morning. I am working with Angularjs version 1.5, and am having trouble generating PDF. Response receives a byte array would like some help.…
-
1
votes0
answers68
viewsArray is not being created correctly
I have a variable from AngularJS which saves any json I upload, the json data is similar to that: { "Products": "Pimenta Vermelha muito boa", "Product_Code": "XXXXX", "RTV": "Alisson Acioli",…
-
1
votes1
answer1274
viewsSearch function in an Angularjs list
Hi, I am have a function that searches in a list the occurrence of some string typed in the field that is passed as its parameter, it works well to fetch these strings: $scope.$watch('q',…
-
1
votes2
answers686
viewsHelp in Deletion and Angular Editing
Good afternoon ! I’m not being able to create the functionality of editing and removing an object from an angular array, could someone help me ? follows below the code of the controller and the…
-
1
votes1
answer118
viewsHow to recover php parameters passed by the $http({ ... data: ...?
I have my controller that requests login: app.factory('LoginService', function($http, $location, SessionService) { return { login: function(data, scope) { $http({ method: 'GET', url:…
-
1
votes0
answers56
viewsIs there anything equivalent to php’s Domdocument class for javascript or Angularjs?
Situation: Given the url, you would need all the classes used inside the page. There is a class method DomDocument that I would need to use (->loadHTMLFile($url)). There is something equivalent…
-
1
votes1
answer9598
viewsAngular $http.post
I am developing an application with Angularjs and nodejs, where I have to send (POST) the data of a user who is registering. My file Node server.js is as follows:: var express = require('express');…
-
1
votes2
answers584
viewsAngular with ngRouter does not work when I type in Browse
I need to type in the Browse... dominio.com.br/details/1234 ...and I need the controller to take this 1234 number and perform your task. I tried everything unsuccessfully. NOTE: If I create an…
-
1
votes1
answer159
viewsHow to pass multiple arrays to PHP page
→ $scope.items = []; → dados = $('#meu_form').serialize(); I wonder: how to send/receive/read the arrays above to a PHP page? Javascript: app = angular.module("app",[]);…
-
1
votes1
answer66
viewsdoubts with select and angular Js
I’m using the selectize and Angularjs, my selectize is configured like this: in the controller //configurando o select mrdicamento $scope.selectize_medicamento = { plugins: { 'remove_button': {…
-
1
votes2
answers4762
viewsng-repeat in an array within an array of objects
I’m trying to list all the sizes of my products once, e.g.: 38, 39, 40, 41 based on the sizes of my array, to set up a filter bar. $scope.listaProdutos = [ { id: 1, nome: "Lorem ipsum dolor 1",…
-
1
votes1
answer327
viewsHow to effect the @Override of a Function in Angularjs?
I have an abstract controller with Angularjs. In it I have among other things, a research Toolbar. I would like to use this search input on all controllers that inherit from the parent controller.…
-
1
votes1
answer504
viewsextract data from a json
I got the following JSON: [{ "ItensReceitaModel": [{ "t0081_id_receita_itens": 1, "t0081_lote": "1233" }, { "t0081_id_receita_itens": 2, "t0081_lote": "123" }], "PacienteModel": { "t0031_id_pessoa":…
-
1
votes1
answer228
viewsDisplay datepicker as selected
Good afternoon, I’m racking my brain to display the date as the user selects. Example: select 01 - "From/To" dates appear select 02 - Only "Until" select 03 - Only "From" select 04 - No dates shown…
-
1
votes2
answers308
viewsHow to store AJAX return to use as a parameter of another function
Main function, which will return the value chave = data.chave: var chave = ''; $scope.submitForm = function() { $http({ method : 'POST', url : 'validar.php', dataType: 'json', data : dados, headers…
-
1
votes1
answer83
viewsASP.NET MVC with Angularjs and Layoutpage
I am developing an application using the best of both worlds of Asp.net MVC and Angularjs. I do the database requests with Webapi which works very well. But now I have added an angular module in the…
-
1
votes2
answers164
viewsHow to verify, for each item inserted in $Scope.items[], whether fields have been filled in
How to verify, for each item inserted in $Scope.items[], if Telephone and CPF were completed? Intended scenario: The user must enter at least 1 item, if negative, when clicking "Send" displays an…
-
1
votes1
answer49
viewsngRoute not working properly
I’m trying to create routes with the AngularJS to make a Single Application. I can load the main page that would be the /, but others that contains parameters I cannot. I have the URL…
-
1
votes0
answers100
viewsPost api github
Hello, I’m having trouble making a post for the github api, I get this error in Mozilla: Blocked cross-origin request: Same Origin Policy (Same Origin Policy) prevents reading the remote resource at…
-
1
votes0
answers663
viewsIonic Login and PHP/Mysql API
I am developing an application with Ionic v1 whose API is in PHP/Mysql and now I need to implement a login system. Since I already have the platform working from the web, it is a social network.…
-
1
votes2
answers149
viewsPerform calculations between inputs
I’m using a plugin that when I click on the button + it multiplies the value. It works perfectly but the calculation is only done inside the <span id="price" class="amount"></span> and…
javascript jquery angularjs vue.js javascript-eventsasked 7 years, 10 months ago Shaolin Fantastic 546 -
1
votes1
answer334
viewsAngularjs-Charts - How to show monetary values in the chart
I’m using the library angular-charts.js I want to show the values that return from the bank, formatted in monetary values $scope.series = ['Valor Etapa', 'Valor Realizado', 'Resultado'];…
angularjsasked 7 years, 10 months ago Luiz Fábio 333 -
1
votes1
answer184
viewsadd to firebase with angularfire $add
My scripts: <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.0/angular.min.js"></script> <script…
-
1
votes1
answer416
viewsHow to insert arrays inside angular objects?
Let’s say I have a vehicle object that has the following attributes converting my class c# to Json: { "UsuarioId": 0, "TipoId": 0, "MarcaId": 0, "ModeloId": 0, "VersaoId": 0, "Quilometragem": 0,…
-
1
votes1
answer151
viewsProblems with $Resource Angularjs
I’m having a problem using $Resource from Angularjs. The data coming from the API is only displayed in the service but when I call in the controller the list is empty. //service…
angularjsasked 7 years, 9 months ago Marcus Vinicius 11 -
1
votes0
answers372
viewsCORS Xmlhttprequest cannot load error
I have the following problem: Xmlhttprequest cannot load Whenever I send data from Angular to the PHP. Man PHP is like this: header('Access-Control-Allow-Origin: *');…
-
1
votes1
answer595
viewsHow to display a menu according to the type of user logged in with Ionic / Angularjs?
Hello, I have two types of users: buyer and seller. How to display a menu according to the type of user logged in with Ionic / Angularjs? Currently, and does not work well, I am putting on each menu…
-
1
votes1
answer72
viewsGetting specific property of a JSON object
I have the following JSON: { "2016": { "mes": { "2": { "dia": { "5": { "-KcENENmSJcZp56clzz5": { "descricao": "teste", "valor": "99" } } } } } }, "2017": { "mes": { "2": { "dia": { "5": {…
-
1
votes0
answers127
viewsupdate character counter of an input
I have a page on which you can add fields where by clicking "create new field" opens a modal with a input with a character counter and two buttons, you can add as many fields as you want. However,…
-
1
votes1
answer586
viewsMerge two objects into one with conditional attributes in Javascript
I have the following dilemma, I need to assemble an object to send to a API rest. But I have data that starts from a variable. I thought of several ways to do this but I don’t know which one is…
-
1
votes1
answer417
views -
1
votes2
answers2001
viewsAdd object inside an object
is the following, I have 3 tables. Cities, Organs and Motives. 1 City can have several organs, and 1 organ several motives. My problem is that in a single page it has to appear all the organs of the…
-
1
votes1
answer1147
viewsClear fields with Angularjs
I have three tabs with content. Every interaction with the fields is controlled by Angularjs. I need to clear the fields after changing tab (by clicking). How can I do that? Html Code <!DOCTYPE…
-
1
votes2
answers162
viewsI cannot enter data in Sqlite Table
I want to insert some data into my Sqlite table. Table creation in . app $cordovaSQLite.execute(db, "CREATE TABLE IF NOT EXISTS tbprodutos( id INTEGER PRIMARY KEY, codbarras NUM, desccupom TEXT,…
-
1
votes2
answers937
viewsHow to solve JSON.parse problem using Ionic and Angularjs
I have the following error to follow and can not solve: Error: Uncaught SyntaxError: Unexpected token ] in JSON at position 142 at JSON.parse (<anonymous>) at…
-
1
votes1
answer170
viewsRelating Nodejs modules to Services Angularjs - Electron
Hello, Everybody! I’m starting a study in Electron and in this application I’m using Angularjs, the detail is that I don’t mean much about, and I can’t think of a way to use the Node without the…
-
1
votes1
answer93
viewsValidate List of Radium Buttons with Angular.JS
I have a list of Radium Buttons fields and need to control by angular: Validations: one option at a time and display message. Code: <!DOCTYPE html> <html> <head>…
-
1
votes1
answer445
viewsAngularjs - remove items selected according to checkbox
How do I get the ids of the selected items from the checkbox(s) to send to the backend and later remove? <a href=""> **O QUE PASSO POR PARAMETRO PARA A FUNÇÃO? ** <i class="material-icons"…
-
1
votes2
answers242
viewsCircular http dependency found: $http <- Authservice <- Authinterceptor <- $http <- $templateRequest <- $route'
I’m having the http circular dependency problem at the angle. I have seen other questions with similar subject, but the ways I have tried I have not yet managed to solve the problem.. My Code: var…
-
1
votes1
answer409
viewsAngular, Java Service REST
I am trying to make persistence (insert data) using Angularjs and Webservice REST in Java, when I click Insert in the console, the following error appears: POST…
-
1
votes0
answers23
viewsI cannot pass Objects between controller using Brodcast and Angularjs On
//Tenho uma injeção de dependência aqui PedidoController.$inject = ['$rootScope', '$state','ModalService', NotificationService','PedidoService', 'BoletoService']; // Construtor do meu…
angularjsasked 7 years, 9 months ago arthur cláudio 11 -
1
votes1
answer4757
viewsCheckbox in Angular
Good evening, guys, I’m a beginner in the development of apps using Angular, and currently, I came across the following situation: I need to register a certain driver, the same has categories on…
angularjsasked 7 years, 9 months ago Matheus Minguini 173 -
1
votes1
answer546
viewsAngularjs is not working
Why is it that sometimes when we call the angle, it doesn’t work? Check out my HTML <!DOCTYPE html> <html ng-app='weset'> <head> <title>WESET</title> <meta…
angularjsasked 7 years, 9 months ago GustavoSevero 2,567 -
1
votes2
answers658
viewsErrors with Put and Delete methods - Methodnotallowedhttpexception - Laravel and Angular
Hello, follow my fight with angular and Laravel. Now I’m having trouble with put and delete methods, I did nothing but what I had before in my code, I’m just adding more models - where I copy the…
-
1
votes1
answer710
viewsng-repeat angular
I am developing an application with a GRID and I needed to format the dates coming to this GRID using data filter angular. However I am not being able to print the date array inside the tag…