Questions tagged as 'angularjs'

0
answers

How to inject a Factory when creating a unit test with angularJS?

Good afternoon! I am creating a unit test for my controller and it is giving the following error:    TypeError: Can not read property 'saveUser' of undefined             at Scope.UserFormCtrl. $ scope.save I saw that the problem must b...
asked by 18.05.2017 / 20:07
0
answers

Keep sitting with AngularJs Authentication

I'm using this project to do authentication with AngularJS. I'm using AngularJS 1.6.4 with WildFly 10 with Java 8 and SQL Server 2014. I can login correctly, but when I refresh the page the session is not maintained. What am I doing wron...
asked by 27.05.2017 / 02:30
1
answer

ngRoute does not work

I was trying to use ngRoute, but I enter the link '/ new', an error appears that does not exist that URL and when I enter the normal '/', it does not show anything. The index.html: <html ng-app="starter"> <head> <title>...
asked by 14.04.2017 / 18:42
1
answer

How to visually map an Ionic app?

All good? I would like to know if there is any tool that draws the routes of an app? I wanted something like: App screens with route and controllers. My project is so big that I need a map ... does it exist? Or should I do it manual...
asked by 03.04.2017 / 02:10
1
answer

Date format

I need to format date to display on the grid, but I do not know the best way to do that. I'm doing it this way: $scope.formato[x].dataFormatada = formatDate($scope.consultas[x].data); function formatDate(date){ var day = date.getDate()...
asked by 29.04.2017 / 02:53
1
answer

How to clean a service at the end of its use Ionic / AngularJs

I have a service that looks like this: angular.module('nhaac.services', []) .factory('sharedCartService', ['$ionicPopup',function($ionicPopup){ // OKAY, MAS ONDE ELE ESTÁ PEGANDO? // DECLARA AS VARIÁVEIS var cartObj = {};...
asked by 29.03.2017 / 21:20
0
answers

How to create a charts in excel via javascript

I need to implement a solution in which I have to mount a charts on excel using javascript/angular . I already have charts rendered on the screen using chartsJS , however I need to export them to excel , no...
asked by 29.03.2017 / 19:07
0
answers

Php does not receive the data I pass with $ http.post from the angular

Hello everyone. I am trying to get some data that is passed by $ http.post to a php script. This is my angled ajax: $http.post('../_classes/chamaOddss.php', id).then(function(datae) { console.log(datae); }); This is my php s...
asked by 09.03.2017 / 16:18
1
answer

ngDisable does not validate

Good morning. I have been trying to validate my form for a while, disabling Button when it is invalid. I've tried it in many ways, including researching here and following it as it was said. But it still did not work out. <button typ...
asked by 10.03.2017 / 14:13
1
answer

AngularJS 1.6 with asynchronous content loading of the jQuery Steps plugin

I have a problem that after loading HTML content dynamically asynchronously with the jQuery Steps plugin: / p> <section data-mode="async" data-url="test.html"></section> AngularJS does not detect the content and thus al...
asked by 25.03.2017 / 01:24