Questions tagged as 'angularjs'

1
answer

Animation on top element - ngShow / ngHide

I would like to know if anyone knows a method to animate the upper element, when using the AngularJS ngShow / ngHide directives. Explaining better: I have an encapsulating element, and inside it two elements, one below the other. I want to sh...
asked by 14.07.2016 / 15:42
1
answer

Default select Angular

<select class="ui search dropdown" ng-model="vm.empresa" ng-options="item.id as item.label for item in vm.collectionData.items track by item.id" required > <option value="">Selecione uma Empresa</option> </select>...
asked by 01.08.2016 / 13:55
2
answers

How to add a Search bar in the header of my home (Ionic + AngularJs)

I want to create a Serach Bar in my home. I'm in trouble. Can someone help me? I will leave here my Controller and my Views a Home.     
asked by 19.07.2016 / 05:27
1
answer

Share object between two controllers in angularjs

I am studying AngularJS and I am trying to make a CRUD simple, but I am not able to have the same object of my listing for my form, that is, when I click the edit button go to the completed form by the object. I have Factory...
asked by 11.07.2016 / 18:32
1
answer

Array receiving two objects

I have two objects and I wanted to create an array this way = > [{"loj_codigo":2,"loj_fantasia":"teste 1"},{"loj_codigo":1,"loj_fantasia":"teste 2";}]} I'm getting the following objects = > Object {1: "1", 2: "2"} Object {1: "teste...
asked by 13.07.2016 / 04:00
1
answer

TemplateUrl according to object property

Hello, I have a controller with an array ($ scope.fields) with several objects inside: each object is a different form input (eg input, select, checkboxes). I'm already using ng-repeat to iterate over them, however I need everyone to load a d...
asked by 25.08.2016 / 22:50
1
answer

Integration (angularJS) with random phrases API

I'm trying to use angularJS to pull data from the following API that generates random phrases: link Here is a snippet of the code I am using: $http({ method: 'GET', url: ' http://api.forismatic.com/api/1.0/?method=getQuote&ke...
asked by 28.08.2016 / 00:33
1
answer

Join controllers

I have this controller that sends a normal Error or Success notification $scope.add = function () { if(!$scope.name || !$scope.url ){ $scope.success = null; return $scope.error = 'Preencha todos os campos.'...
asked by 05.10.2016 / 21:47
1
answer

Doubts with angular and checkbox

I have a form with some inputs and some checkbox, when I do the search the bank is returned Json , and the input fields are filled in because the checkboxes are not checked even though I have declared ng-model of it: <p> <input...
asked by 17.06.2016 / 12:52
1
answer

Check Login and Password

I have the following function to login: function login(username, password, callback) { var myResponse; var systemUser; Users.getByLogin(username) .then(function (response) { systemUser = response.da...
asked by 16.06.2016 / 20:17