Questions tagged as 'angularjs'

2
answers

Push in JSON Object AngularJS

How do I add 1 item to a json object in angularJS. In case I have: {COD: 29, MOTIVO: "teste"} And I'd like you to stay: {COD: 29, MOTIVO: "teste", ID : 12345789} Home I tried the following: $scope.cadastroSolicitacao = function(...
asked by 10.02.2017 / 20:47
2
answers

Filter in Json in AngularJS

I would like to filter this JSON by COD and bring only the chosen one. I'm bringing the value of the code through the url and would like to filter only to display the name of the chosen option. NOTE: The user will not enter the value because it...
asked by 10.02.2017 / 16:32
1
answer

Request the API using angularjs

I'm still new to development using AngularJs and I'm having trouble accessing an API: .controller('RegulamentoCtrl', function($scope, $state, $http, $ionicPopup, AuthService) { $http.get('http://rest-service.guides.spring.io/greeting')...
asked by 06.10.2016 / 22:22
2
answers

Check if URL exists

I would like to know how do I validate (if there are) a member's URL's, I am using AngularJS , AJAX and http requests however I can get the status of a URL that I created in a mock, but I can not check a URL if it is external...
asked by 17.04.2016 / 16:08
2
answers

Get current date / time AngularJS

I need to display on the page the current date followed by the current time, Here's what I've done so far, I just need to display the time if I continue as is, follow code: function dataHoje() { var data = new Date();...
asked by 15.04.2016 / 19:55
1
answer

tags saved in bd being printed as text

Hello, I am printing a saved value in a mysql text field, which contains 'p' tags in its composition, the problem is that it is printing these tags as text and not as html, does anyone know what the problem would be? I'm using angular to print th...
asked by 14.04.2016 / 21:30
2
answers

Global variables do not update in view with AngularJS

I'm creating a test application with AngularJs using the ngRoute routing system, the created controllers are working, however, the global variables in them are not being updated in the view. The browser expresses an error:    Error: [ng: areq...
asked by 24.05.2016 / 00:08
6
answers

Regular expression for phones?

I created a directive to format phones with or without the digit 9. Now I need a regular expression to validate if the number format is correct in ng-pattern . I created a regular expression but I'm still not getting results if the number...
asked by 05.01.2016 / 05:53
1
answer

Angularjs Controller does not work right

I am giving a basic study on how to create screens using Angularjs and Material, everything going well until I need the controller, it seems that $ scope is not working, I put a console.log at the beginning of the controller and it prints the te...
asked by 11.04.2016 / 01:29
1
answer

How to call PHP function in another function AngularJS?

I have the following function in AngularJS: angular.module("fluxo").controller("fluxoCtrl", function ($scope, $http) { var mostraTodasContasEntradas = function () { $http.get("php/index.php").success(function (data){ }); } //mostraT...
asked by 10.11.2015 / 13:11