Questions tagged as 'angularjs'

1
answer

Updating data in a module with AngularJS

I'm developing an application with angular and I'm calling a webservice that returns me a JSON and wanted to know how I can update this Json from time to time with angular, could anyone give me a help?     
asked by 23.12.2014 / 14:43
1
answer

Using $ rootscope AngularJs

I wonder if it's ok to use $rootscope this way? $scope.buscaChamados = function() { modelSac.buscaChamados() .success(function(data, res) { $rootScope.chamad...
asked by 21.07.2015 / 18:59
1
answer

AngularJS - page can not find the controller

I'm starting to test applications using AngularJs and Spring Boot. My problem is this: All scripts are normally imported into the browser, but IF I put the tag "ng-controller=" HeadController "" in any tag on my page, I have an error saying t...
asked by 14.03.2016 / 03:11
2
answers

How to convert milliseconds to date

I would like to know how I can do a millisecond to date conversion within a field in a json. For example $http.get("http://teste").success(function (dados) { ng.locations = $.map(dados, function(job) { return job.j...
asked by 14.08.2014 / 20:30
2
answers

CRUD with AngularJS

I have a single-page and need to save the value of a variable in the database. How to do this using angular js? This variable receives the title from my single-page. This title will be customized by the customer. Would anyone have a clue h...
asked by 10.11.2014 / 19:21
1
answer

AngularJS with Socket.io and MySQL data

The following query in cidade.php looks up how many requests are open in a particular city, which blocks a link. If it is 0 , the sum of query frees the link. If it is greater than 1 it blocks the link. Angular Control...
asked by 25.10.2014 / 17:39
1
answer

How to get objects from an array, with filter passing as parameter an object with multiple ID's

Associating the "categories" object in "products"; With the IDs that I need to associate with such a product, so for example "products 1" should receive the "categories" with the ID [1, 3, 4]. creating another array by combining the data between...
asked by 23.10.2014 / 23:06
2
answers

Filter array by first letter

I have an array of objects and need to separate it by the letters of the alphabet, so I need to limit the items by the corresponding letter. Example: A - Aston Martin B - Bugatti angular.module("myApp", []) .controller("myCtrl", fu...
asked by 19.06.2018 / 16:36
1
answer

convert 1 to active and 0 inactive within ng-repeat angular

I have a flag value that is 1 for active and 0 for inactive within a ng-repeat that I display in a table, however I need this value to be Active if 1 and inactive if 0 <tbody ng-repeat="oper in operadorasCartoes" >...
asked by 18.05.2018 / 14:58
2
answers

Request of type Options

My question is, whenever I make a request before it is actually sending a request of type Options is sent, I wanted to know what exactly it is for. What impact can I have when removing this request both in performance (internet) in both security...
asked by 14.11.2017 / 17:40