Questions tagged as 'angularjs'

1
answer

Angular Links

I'm having some headaches, because I need to create a function that allows validating when the link should redirect to the location or when it should not, for example, I'm loading an image and clicking the link should not load, I created a funct...
asked by 05.02.2016 / 17:52
1
answer

Loop problem with $ stateChangeStart

Hello, I'm creating an authentication and verifying system with Angularjs, I'm using stateChangeStart to validate the permissions in view. Only when I use $ state.go ('app.home'); it goes into infinite loop. My code is as follows: $roo...
asked by 31.03.2016 / 21:20
1
answer

Good practices with AngularJS controllers

In a view responsible for registering members of the usuarios entity, if it is necessary to access data of a pessoas entity, for example, the ideal method is that the method that will search the data of this pessoa belongs t...
asked by 02.04.2016 / 05:42
2
answers

Call function in $ state.go () Ionic / Angular.js

I would like to know how I can do to call a function that is in another controller example: I am in the 'Cadastro' view and after registering I am redirected to view 'Home' in controller of Home I have a function that receives a...
asked by 25.01.2016 / 04:58
1
answer

Is it possible to change the format of the json file?

I have a code that generates a Json file in this format: [ { "$id": "1", "poule": 73, "idusuario": 4, "vendedor": "ITAMAR SOUZA", "total": 50.00, "datajogo": "2016-01-19T00:00:00", "terminal": "(11)985590116",...
asked by 22.01.2016 / 02:18
1
answer

How to create a new empty list by clicking "new list"

Good afternoon, I have an array of objects and display them in a list, in the list there is an input to insert new objects. I want to make a button where I would create a new list that is zeroed and with the same input to insert new objects....
asked by 01.02.2016 / 17:52
1
answer

How to find out the current $ location

How do I validate when there is a change in the screen and the user clicks on another hyperlink to leave the screen, it can not allow. Is there any ready-made angular function that performs this check? At the moment I'm trying to use the...
asked by 01.02.2016 / 14:40
2
answers

CRUD with AngularJS and PHP

Good evening! I have the following: var carregarUsuario = function () { $http.get("buscar.php").then(function (retorno){ console.log(retorno.data); $scope.usuarios = retorno.data; }); }; carregarUsuario(); And PHP...
asked by 16.01.2016 / 01:54
1
answer

Open page using external browser

Hello, I'm developing an application with the OnsenUi framework (Cordova in visual studio) But the code below opens the url using the application itself as a browser. At the end of the day doing this, if I need to use the alicative, I have to op...
asked by 17.01.2016 / 16:21
1
answer

Cache with AngularJS

I have an application with AngularJs , in this application when I make some changes and then deploy the browser does not recognize those changes. It only works when I change the URL of that application. I got some tips her...
asked by 27.01.2016 / 13:26