Questions tagged as 'angularjs'

2
answers

Convert String to date () in angularjs

I am consuming from an array (json) the start and end dates. these are in string format. I would like to know how I convert those string to a date format yyy-mm-dd and print it on my controller with an alert. pdta All this I want to do to then g...
asked by 21.05.2016 / 08:00
1
answer

Problem receiving Push Notifications FCM with the app closed. Ionic 3 and Angular

Good day folks, it is my first publication on the site, I apologize if I do not comply with all the publication rules because I do not know them in detail. I will comment on my problem .. I have an app with ionic 3 and angular, which works wi...
asked by 06.02.2018 / 15:55
1
answer

Chain two calls to $ resource to update two related entities

I have two related entities (Expedition and Temperature) and I need to keep the temperature when I create a new expedition. This is the code that I currently have: angular.module('nowLocateApp').controller('ExpedicionDialogController', ['$s...
asked by 30.04.2016 / 13:10
0
answers

Load templates dynamically

How to load a template inside a controller in angularJs function PostCtrl($scope,$http, $compile, $rootScope, CONFIG) { $scope.patternUrl = (function() { var regexp = /(https?:\/\/[^\s]+)/gi; return { test: function(val...
asked by 03.05.2016 / 22:06
1
answer

Angular page

I'm following this example: link My file js: var App = angular.module('SimulatorApp',['ui.utils.masks','ui.bootstrap', 'angularModalService', 'datatables','ngSanitize', 'ui.tinymce']); App.controller('TestController', [ '$window', '$l...
asked by 02.06.2017 / 10:27
2
answers

Promise unresolved

I have the following code: getUserAccount : function(){ var delay = $q.defer(); $http.get(CommonUtilitiesService.getUrl()+'AllUserAccount') .then(function(response){ if(r...
asked by 08.06.2017 / 03:45
1
answer

Angular table edit inline pagination

help me please I have an error wanting to put paginarion (dirpagination) to my table with inline angular edit js, I do not know why I get this error since in my other tables of just showing data it's all right, but in this table I'm with an edit...
asked by 21.04.2017 / 20:05
1
answer

query ui.router assigns a # before routes

I'm trying ui.router but I have a problem whenever the ui-sref comes before a # <!DOCTYPE html> <html ng-app="app"> <head> <title>Indice</title> <script src="/angular/angular.min.js"></script>...
asked by 07.06.2016 / 06:45
1
answer

Calculator in angular that does not allow two decimal points

I have a problem with a calculator that creates with angular js based on MVC, because it allows more than one decimal point, and I'm not sure how to resign it. Here I leave the code: HTML <div ng-app="appCalculadora" class="container"&...
asked by 20.09.2016 / 05:20
1
answer

Help! difference between form action and $ http.post ()

Good morning, I have a form in which the values I capture in the need to send them to a controller. This mvc asp.net driver returns a new view as an answer. My question is, using $ http.post (), can I get that view that the controller returns...
asked by 12.11.2018 / 22:11