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
-
0
votes1
answer82
viewsReturn current row value of a Tree-grid-Directive tree
I’m using the Tree-grid-Directive (https://github.com/khan4019/tree-grid-directive) in an Angularjs application and would like to know how to return the object representing the current row in the…
-
0
votes0
answers131
viewsError loading header files with Angularjs
When implementing a code using routes, the header files are not loading, giving the following message to everyone. http://localhost:9090/bootstrap.css Failed to load Resource: the server responded…
angularjsasked 7 years, 11 months ago Tony Willian 1 -
0
votes0
answers36
viewsController does not run when I go back to the same state
Hello, I have a problem in angular and Ionic 1 I have a restaurant market place app, similar to ifood, I have an order flow and as the steps go I record the order data in a place in the…
-
0
votes1
answer39
viewsAngularjs and C# - model does not bring value if not changed
I have a form where some fields are numeric (decimal format with 2 houses). I’m displaying formatted and masked, all correct. What happens is that when I edit one of the values, this edited value is…
-
0
votes1
answer422
viewsHow to pick up object in php
Good evening, everyone, I’m trying to pass parameters from my controller to php that searches the database and I’m not getting it. I’m passing the data as json object. controller: var…
-
0
votes2
answers1391
viewsHow to format a very large string (organize the text)
I have an object with an attribute of type String that has a very large text, and I need to organize this string so that the text is organized and more beautiful. I wonder if there are any JS…
-
0
votes1
answer52
viewsCreate array dynamically while typing and deleting when the value is empty?
HTML <div ng-app="app"> <div ng-controller="testeCtrl"> <ul ng-repeat="(keyColumn, column) in columns"> <li>{{ column.name }} <div ng-repeat="method in requireMethods">…
-
0
votes1
answer211
viewsAngularjs com file upload - Jasny
I have 2 problems when I open my modal: After opening the modal, select a photo and close, when I open again, the photo that was not reset (reset), I’m having doubts about how to pass null to this…
-
0
votes0
answers73
viewsAngular http method: 'POST' is not sending the $Scope object
I’m having a problem in the angular http method post, I’ve seen several tips but none works. Follow the code: $scope.cadastrar = function () { $http({ method: 'POST', url:…
-
0
votes1
answer865
viewsAccess methods through a parent component in a child with Angular 1
Hello, I’m having a hard time getting information between 2 components working with Angular 1. This is my example: angular.module("parent",["child"]).component("parent",{ template : "<p>…
-
0
votes2
answers84
viewshas-error class does not disappear from the field
Given a customer form, valid some mandatory fields. Mandatory fields that are not filled in are automatically highlighted on the page to make life easier for the user. So far 100%. As the user sees…
-
0
votes2
answers297
viewsHow to list array values (Angularjs) using PHP?
I would like to know how to do the listing ("foreach") of my array $scope.items within PHP, so I can work individually with each entered value. Javascript: var app = angular.module('app', []);…
-
0
votes0
answers244
viewsHow to display/hide, individually, replicated div in Angularjs, using jQuery?
[SIMULATION using Jsfiddle at the end of the problem description] The following function performs the insertion of some elements using Angularjs: $scope.addItem = function (user){…
-
0
votes1
answer495
viewsTypeerror: $http is not a Function
Script: app = angular.module("app",[]); app.controller("controlador", ["$scope", function($scope, $http){ $scope.items = []; $scope.submitForm = function() { // Posting data to php file $http({…
-
0
votes1
answer403
viewsMap opens bugado
Good morning! I have a web application, where I use a leafletjs map (http://tombatossals.github.io/angular-leaflet-directive/#!/) and openstreetmap as Tile. The map works perfectly, I can interact…
-
0
votes1
answer289
viewsDropdown in modal does not see Switch controller Angular JS 1.5
good morning. The problem is this, I have a news feed page and within it I use a Modal Angular UI - Modal to show the information of a specific post. Until then everything quiet, the information and…
angularjs modal angularjs-scope angular-ui-bootstrap angular-uiasked 7 years, 10 months ago Mikael Hadler 46 -
0
votes1
answer52
viewsHow to capture and display errors using Angular and AJAX
I’m trying to receive the return via Ajax and display using Angular JS, but without success, follows below the code: HTML: <body ng-app="app" ng-controller="controlador"> <form…
-
0
votes1
answer274
viewsWhy does ng-repeat from Angularjs not work in Bootstrap Modal?
In my project, I used a nesting of ng-repeat to assemble several checkbox dynamically, enabling the user to combine filters, what works perfectly when mine controller upload the lists. Now, the user…
-
0
votes1
answer418
viewsAngularjs - NG-Click to repeat HTML block
I am developing a "dynamic" form, where users choose the sequence, quantity and which fields to fill. Then I used ng-click to repeat the HTML code of the form as follows below: the buttons: (There…
angularjsasked 7 years, 10 months ago Sousa Xavier 1 -
0
votes0
answers374
viewsI cannot view object data returning from $http.get in the view
I’m getting data from an api via $http request. This is my controller. angular.module('supernovaWebApp',['ui.router']) .controller('professoresCtrl', ['$scope', '$http', function($scope, $http){…
-
0
votes2
answers152
viewsAngular 1 - Using bindings in controller - Component
I am using Angularjs, in creating a Component I need to access the bindings in my controller. In html I’m calling Component so: <component type='tipo' urlid='meuid'></component> I’m…
-
0
votes1
answer282
viewsShow and hide div after filter with Angularjs
Hello. I have the following filter: <div ng-repeat="user in users|filter:search| filter:selectedCategories| filter:selectedType| filter:selectedDate| orderBy:'+id':true| limitTo: 10"> You want…
angularjsasked 7 years, 10 months ago carlostiago 3 -
0
votes1
answer47
viewsHow do I list what appears on the console in View?
I have this routine: $scope.array1 = window.localStorage.getItem("tipos_pagamentos"); var as_formas_pag = $scope.array1.split(';'); for (var i = 0; i < as_formas_pag.length; i++){ $scope.array2 =…
-
0
votes1
answer51
viewsAccess nested JSON with Angularjs
I have a file .json and I need to list his items as follows. Enterprise 1 Value 1 Enterprise 1 Value 2 Enterprise 2 Value 1 Enterprise 2 Value 2 Below follows the structure of my . json file {…
angularjsasked 7 years, 10 months ago Felipe Coelho 1 -
0
votes0
answers307
viewsAngular form with Laravel
I have two tables: Invitations and Process. A process can have an invitation as well as an invitation belongs to a process. In this way I made the relationship in the database where the Invitation…
-
0
votes1
answer229
viewsSequential execution in Javascript or Angularjs
I am creating a controller for an Angularjs application, in this controller I will have 3 methods that must be executed in sequence. EXAMPLE: $scope.albums = []; $scope.photos = []; //Metodo que vai…
-
0
votes2
answers169
viewsSelects selected from object
Inputs of type select are not selected when loading a form from an object. The values of select are set in the controller. How do I load the page and select them with the object values? For example,…
angularjsasked 7 years, 10 months ago Fernando Zabin 707 -
0
votes1
answer89
viewsProgress bar in angulajs
I need a progress-bar which is the image of a chalice being filled with AngularJs. Something like this: http://franverona.com/loadgo/. Can someone give me an example? I don’t have the official image…
-
0
votes1
answer42
viewsAngularjs - Changing view with json return
My app checks the state of a bulb and creates an animation in the view. I am making a request ajax with angular and in return for success I have to animate a lamp lighting, follows excerpt from the…
-
0
votes1
answer243
viewsHow to insert and restate a list of items in the database
The code below allows the insertion of n items in the array $scope.items[]: var app = angular.module('app', []); app.controller('controlador', function($scope, $http) { $scope.user = {};…
-
0
votes0
answers23
viewsAdd an HTTP response to a dashboard
My doubt is the following, Gero 6 determined panels in the script.js file that is with names defined as Paineis1, Paineis2... what would you like, do a get in a url, and for every url I call it add…
-
0
votes1
answer195
viewsWhy can’t I update the variable value in the Angularjs service and pass it as a parameter to PHP?
UPDATE If I put filtro instead of filtro.filtro in the service, returns an error, since in the URL an array is passed: filtro: {filtro: "ma"}, e. g. Error Typeerror: a.values.foreach is not a…
-
0
votes0
answers90
viewsTop Ionic menu
I’m trying to make a top menu in Ionic but this menu is getting on top of the content, I would like to know how to leave the content below the menu Follow the page code: <!DOCTYPE html>…
-
0
votes1
answer444
viewsPass Web Service header parameters?
I am trying to perform a web service call on Angularjs, however I am getting the following error message on the browser console (tested on Chrome and Firefox): Xmlhttprequest cannot load No…
-
0
votes4
answers1392
viewsReturn True or False in jQuery’s Success
< script type = "text/javascript" > $(document).ready(function() { $('#btnEnviarDados').click(function() { var strFomr = $("form").serialize(); $.ajax({ url: $("form").submit(), type: "POST",…
-
0
votes1
answer1467
viewsAlways return to the top of the screen by clicking on links of a SPA with Angular.Js
I have an angular design, of which with the $routeProvider define my views and call the appropriate controllers, and use the <ng-view></ng-view> to present them on my website. They are…
angularjsasked 7 years, 9 months ago Aldo Fernandes Junior 486 -
0
votes1
answer631
viewsHow to fill in Angularjs fields from JSON return
How do I fill in selects and inputs, of each item, from a JSON return? The fields are: produtoAtrib.codigo, produtoAtrib.descricao and produtoTrib.estado. Javascript: <!-- Capturar dados do BD e…
-
0
votes1
answer96
viewsMove Text+location to google maps app
Hello, I am making an application using only: HTML, JS(Angularjs) and CSS. I have the following. My location is picked up by the application and an address that is saved in the database, a string…
-
0
votes0
answers56
viewsWarning Message with Need for Action to Proceed
I would like that you can-without explaining to me how and that it keeps a warning message(Like the Example) in constant permanence until the GPS of the Smartphone is Active ! In More Detail: I’m…
-
0
votes0
answers589
viewsHow to update "Modal" web page without refreshing (F5) after accessing last information?
This is my file code Modal $scope.salvarObservacao = function (data) { if(data.dsObservacaoEvento === undefined | data.dsObservacaoEvento === '' ) { alert('Campo obrigatório.'); return false; }…
-
0
votes2
answers2054
viewsHow to increment the counter with ng-repeat?
<div ng-repeat="column in columns"> <div ng-if="column.new"> {{ contador = contador + 1 }} <span ng-if="contador === 1"> <div class="alert…
-
0
votes1
answer59
viewsOrder by timestamp dataTables Angular js
Good morning wanted to sort a datatable of Angular JS by a column that is a timestamp of descending form and for that I used: controllerScope.logsData = { ajax: { url:…
-
0
votes1
answer94
viewsAngular Leaflet map error
I’m using Angular in a project with Codeigniter and I’m applying the Leaflet map. Creating the function, it generates the map, but informs error when obtaining the center property and does not load…
-
0
votes1
answer238
viewsButtons added to the table generated with Angularjs Datatables do not allow function execution in the current scope
I have a table built with Angularjs Datatables as follows: HTML <table datatable="" dt-options="concessoes.standardOptions" dt-columns="concessoes.standardColumns"…
angularjsasked 7 years, 9 months ago Not The Real Hemingway 853 -
0
votes2
answers89
viewsEternal loop boot using Angularjs
I’m using a knob on which I have an ng-click=Search client call. It triggers a function in the controlled Angular but is in eternal loop. How to fix this ? HTML <div class="botao"…
-
0
votes1
answer587
viewsAngular ng-repeat and $sce.trustAsHtml
I’m developing a system where goes PHP in PDO, Angular with crud getting faster and picking up the list that comes from the Mysql database, the version of Angularjs is v1.5.8. So I’m caught in a…
angularjsasked 7 years, 9 months ago André Aranda 1 -
0
votes1
answer720
viewsPass array as parameter for web api in php with Angularjs
In my local environment I use PHP7 and developed Restful API for an application that uses Angujarjs. I needed to make a get request to the Api and pass an array as parameter and did so…
-
0
votes2
answers1510
views"No 'Access-Control-Allow-Origin' header is present" cakephp
Good morning, everyone I’m making an application with angular and cakephp. I am trying to make a request for the backend and the following message appears on the console: Xmlhttprequest cannot load…
-
0
votes1
answer74
viewsHow to copy the generated html content within ng-repeat into a textarea?
<div ng-repeat="(keyC, column) in columns.form" ng-model="columns.form" > <div class="well"> <p><strong>BLOCO {{ keyC }}</strong></p> <div ng-repeat="(keyP, p)…
-
0
votes2
answers439
viewsAngularjs - POST an array of objects (JSON data) to the php page
$scope.informations = [ { "name": "asd", "rg": "1123", "certificado": null, "sex": null, "date": null }, { "name": "fsdf233412423", "rg": "123123", "certificado": null, "sex": null, "date": null },…