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
answer304
viewsReceive data from a select in Angular
I’m doing a select for a REST service, using Angular. But the page that should have the table populated with the data coming from select, is empty. On my page, I have an input (To enter the driver’s…
angularjsasked 7 years, 8 months ago Matheus Minguini 173 -
0
votes1
answer310
viewsHow to convert time in string to time from Ionic to PHP with Mysql?
Good morning guys, I am passing to the server a string that would be for time: 23:45 is an example. In my $_GET I’m trying to convert this way: $prazo_entrega_min = time("hh:mm",…
-
0
votes1
answer59
viewsDirective does not receive value
I have this directive: app.directive('mensagem', function($timeout, $rootScope){ return { restrict: 'E', scope: { msg: '=' }, template: '<div ng-show="animate && msg" class="alert…
-
0
votes2
answers65
viewsListing information with select
I have already opened a question of this here and a user of the site helped me, and cleared my doubts. However, when trying to use the code again that he presented me, the same is presenting errors.…
-
0
votes1
answer947
viewsAngular form Ubmit
I am using the metronic with angular and I have the controller all right, however I tried to create a function that displays the user typed in a field in an Alert (in the future I will filter)...…
-
0
votes1
answer39
viewsHow do I Print a Parse.Query result in a View?
I have the following situation, in View: {{nomeCraque}} and in the Angular: $scope.nomeCraque = {}; var EscalacaoObject = Parse.Object.extend("Escalacao"); var query = new…
-
0
votes1
answer90
viewsAngular post for ASP.MVC
I need to do a POST after a button click, so that this POST activates a method in a MVC controller, was testing as follows: [HttpPost] public void GerarPDF() { string teste = "teste"; } The name of…
-
0
votes1
answer70
viewsAdicionar items Ionic
I need the values to change when clicking the + and -buttons, as in the image. I took an example from Plunker (http://plnkr.co/edit/V1GEsL5IooR8MROuiAoc?p=preview) and I’m trying to adapt to what I…
-
0
votes1
answer37
viewsseparating information that is in the string type in Angularjs
I have the following code: app.controller("LoginCtrl", function ($scope, LoginAPI) { $scope.doLogin = function (model) { if (model.username === undefined || model.password === undefined) { return…
-
0
votes2
answers993
viewsCount total of arrays in Javascript:
[Object, Object, Object, Object] [Object, Object, Object, Object] [Object, Object, Object, Object] [Object, Object, Object, Object] [Object, Object, Object, Object] [Object, Object, Object, Object]…
-
0
votes1
answer79
viewsDoubt with Angularjs
What’s wrong with this code? I’m trying to run it, but no way it shows me the data coming from the bank! var app = angular.module('app', []); app.controller('clienteController', ['$scope', '$http',…
-
0
votes1
answer104
viewsPass $Scope.variavel for a javascript rating at home
How to pass content within config to global variables: //meu config app.run(function(editableOptions, $rootScope, $filter) { editableOptions.theme = 'bs3'; // bootstrap3 theme. Can be also 'bs2',…
-
0
votes2
answers210
viewsCountdown incorrect date
I’m using the Countdownjs to enter a count in my project but it is returning the incorrect day. I am using Angularjs, follows below the directive I created for counting:…
javascript html angularjs angularjs-directives countdownasked 7 years, 8 months ago Maurício Krüger 1,848 -
0
votes2
answers577
viewsPass Token by header to each Angularjs request (Authorization )
I have the file interface-Factory.js which is my factory app.factory('interfaceAPI', function ($http) { var _getInterface = function () { return $http.get("/api/interfaceapi/getall"); }; var…
-
0
votes0
answers123
viewsdoubt with checkbox / angular
Guys I got this table: <table class="uk-table uk-table-nowrap"> <thead> <tr> <th class="uk-width-1-10 uk-text-center small_col"><input type="checkbox" icheck…
-
0
votes2
answers146
viewsCalling database data with $http get
I am not able to call the database data with the method below: <div class="container" ng-app="appCat"> <div class="row" ng-controller="appCatCtrl"> <table class="table…
-
0
votes1
answer56
viewsHow to "Delete Participant" without having to refresh (F5) the page?
I have Project here where I work, and when deleting participant, recovered from BD it is deleted, but only some of the page when I give refresh(F5), I would like to know which line of code to insert…
-
0
votes1
answer358
viewsAngularjs - directive and view are not working properly
I’m making a small application for my internship, for studies and everything, but even if I follow all the steps, there’s something wrong, I can’t make the angular (version 1) render the view or the…
angularjs angularjs-directives angular-ui-bootstrap angular-viewsasked 7 years, 8 months ago Márcio Eric 447 -
0
votes1
answer227
viewsDisable buttons
The two buttons "delete participant" and "forward for authorization" must be disabled as soon as there is no participant registered in the event, fields(Cpf, name, situation...etc). <div…
-
0
votes1
answer173
viewsError using a view for two controllers
I have a controller to add an object and it uses the view. addObject.html I have another controller that is to edit this object, and when accessing it it fills the whole view addObject.html. What…
-
0
votes2
answers158
viewsAccent error with xmlhttp.open (or in PHP) using Angujarjs / Ionic
I have problems accentuating the sending of form data to the database, it gets the wrong accentuation, like: No = NO. How could I solve this problem? Follows my codes: My Controler: // ENVIAR DADOS…
-
0
votes1
answer267
viewsHow to pass JSON Object content to a controller
How do I pass the contents of the service JSON object to controller. At the moment I do tests with the following codes: Controller(app.js) example.controller('equipecontrol',…
-
0
votes2
answers362
viewsHow to pass content from JSON Object to a controller - Part 2 - Using Parse.Query
Sorry to come back in almost the same topic, but now when I use a Parse.Query to get my data in service.js, I’m not able to pass JSON with content to the controller(app.js), follows below excerpt of…
-
0
votes1
answer206
viewsUpdate with Resource Angularjs
There is the method Callback to the resource.update in the AngularJS? Type, var instancia = Resource.get({id:1}, function(data){ instancia.$update({id:idModelo}, modeloAtualizado) }); This works,…
-
0
votes1
answer90
viewsAngularfire crashes browser when saved
Hello, I’m running some tests on Angularfire, and every time I save an object at the base, the browser crashes. The screen is even updated but I have to stop running the tab and refresh the page so…
-
0
votes1
answer377
viewsAccess variable from within the scope of Promise
I have a Factory that must access two other services. Being the following structure: angular.module('my.module') .factory('ServiceMain', ServiceMain); ServiceMain.$inject = ['ServicePrimary',…
-
0
votes0
answers40
viewsForm via PUT method is not sending the data to a restEasy service
I am sending a form via Ajax, my front is done in Angularjs. I capture the form information and send it to a service that is in Java Restreasy. But it arrives Nullo! Someone could help me? In my…
-
0
votes1
answer46
viewsCalling Service from a then() resulting from another service
The situation is as follows from the controller equipecontrol, I’m walking a forEach, inside a then(), which has previously achieved a result by performing the function getEscalacao(), that is…
-
0
votes1
answer429
viewshow to pass parameter to another screen with ionic1 and angular1?
I created a screen with several buttons very similar to this : https://plus.google.com/+JoshuaMorony/posts/Rjhs4RCwek3 When I click on a button it would have an id and this id I get on its route, I…
-
0
votes2
answers74
viewsAngularjs - request Does not pass parameter
My code is this, but in php code I do not receive the ref parameter... What can be ? $http({ method: 'POST', url: '../assets/php/client/PHP.php', data: {ref: 'dataTableLoad'} }).then(function…
-
0
votes1
answer278
viewsng-include does not work after using a directive
I needed to make a dynamic controller, but when I use the directive data-ng-dynamic-controller my ng-include doesn’t work someone knows what can be? ng-Dynamic-controller directive…
-
0
votes1
answer49
viewsWould it be interesting guidelines using http.get?
This is a piece of html: <tr ng-repeat="projeto in projetos"> <td>{{projeto.name}}</td> <td>{{projeto.status}}</td> </tr> It uses a controller that does the…
-
0
votes0
answers49
viewsAngularjs route
I have a web application in spring boot and use Angular on the routes. Everything is working, but when I update the page, if not on home, presents an error and when I change something in some HTML…
-
0
votes1
answer787
viewsHow to upload xlsx file with angular and php?
Hello, I am developing a financial system for client companies that I already own. I am using angular and php. In this system, I have a part that needs to import data in excel. I’m having trouble…
-
0
votes2
answers575
viewsAngular does not recognize a variable out of control
I have a question, I have searched in other forums and I did not find the solution. I did a test on a code below just for demonstration. *//dentro do controle do angular*…
javascript angularjs angularjs-directives angularjs-scopeasked 7 years, 7 months ago Pedro Lucas Lima 1 -
0
votes2
answers78
viewsAngular validation
I can’t use angular validations, ng-disable, ng-show, none of them work. By console index.html <!DOCTYPE html> <html ng-app="myApp"> <head> <title></title> <meta…
-
0
votes1
answer68
viewsHow can I set ranges in Ionic with a predetermined initial value?
I put in a Range to set the time and minutes. As I show in the view, but despite setting the "value" in the system the range always starts in the middle and worthless. How can I set my ranges to be…
-
0
votes1
answer114
viewsSimulate click on a compiled template
I am facing problems when assigning a 'click' event in an external template previously compiled, follow the code... Directive angular.module('testeFuncoes').directive('fechaMenu',…
-
0
votes1
answer148
viewsDoubt with API access - using Angular - typescript
I set up a website to study a store Woocommerce, activated the api and generated the keys. At the root of the added site on . htaccess, is that in the correct location?: # Permite acesso ao pacote…
-
0
votes1
answer82
viewsAngular assign data from a POST request
Good people I have the following code app.controller('lista', function($http){ $http.defaults.headers.post["Content-Type"] = "application/x-www-form-urlencoded"; //this.feriados = <?php echo…
-
0
votes0
answers92
viewsHow to apply CSS class only on selected item or clear CSS class applied on ion-radio
I’m new to angular/Ionic development and I’m developing an application that needs to select an item from a radio and apply a CSS class only to the selected item. The way it is implemented I am able…
-
0
votes1
answer786
viewsPicking an element by id after repeat in an array - HTML/Javascript/Angular
Hello, I need to take an HTML element after an ng-repeat, to apply CSS commands in the div in which it depends on the result that comes from the database. For now I can only catch this element, but…
-
0
votes0
answers156
viewsHow to disable angular route system
I have a project developed in Angular 1, I am using routeProvider and locationProvider. But now that the project is "ready", I need to disable the route system, IE, when the URL is changed, when I…
-
0
votes1
answer207
viewsTreat multidimensional array in Angularjs
I have that function: getProducts(){ this.auth.getProducts().subscribe(data => { this.turmas = []; this.produtos = []; this.cursos = []; for (var i = 0; i < Object.keys(data).length; i++ ) {…
-
0
votes1
answer471
viewsHow to render dynamic images with angular
I have an object in the following format: Inside the main object has an object called upload. This object contains information about the images to be rendered. I’m trying to do it like this:…
-
0
votes1
answer521
viewsHow to create javascript array object within a FOR?
I need to pass an array object as follows, to the api: [paulo = 1, gustavo = 2, amanda = 3,...] I have the following code: $scope.salvarHabilidades = function(pro){ var valores =…
-
0
votes1
answer85
viewsProblem with html5Mode angular
I set up my app Angular using #! in the links url, I am now trying to use the html5Mode but it’s not working. The folder structure of my application looks like this: At the root is the index.html, a…
-
0
votes1
answer434
viewsHow to reduce image quality in upload using Cordova and Ionic 1?
Using the Cordova plugin: cordova-plugin-file cordova-plugin-file-transfer cordova-plugin-filepath cordova-plugin-camera cordova-plugin-actionsheet Who together use this code template: `// Present…
-
0
votes1
answer76
viewsAngularjs with Md.data.table Handler?
I have an app with Angularjs using Material Design and Md.datatable. in the latest version of each Framework(respectively 1.6.4, 1.1.0 and 0.10.x). In the Md.datatable. it is possible to verify that…
-
0
votes1
answer51
viewsHow to update $Scope.items using xeditable within form
In this example it is possible to update the value of the field by clicking the confirmation button, however in my form there is no such button. What should I do to update this item/field? My…