Questions tagged as 'angularjs'

1
answer

Sequential execution in Javascript or Angular

I am creating a controller for an AngularJs application, in this controller I will have 3 methods that must be executed in sequence. EXAMPLE: $scope.albums = []; $scope.photos = []; //Metodo que vai setar o array de albums e chamar a funçã...
asked by 25.01.2017 / 13:48
2
answers

Selected selects from object

Select inputs are not selected when I load a form from an object. The values of the select are defined in the controller. How do I load the page and the selects to be selected with the object values? For example, if the value of the project t...
asked by 25.01.2017 / 14:02
2
answers

How to increment the counter with ng-repeat?

<div ng-repeat="column in columns"> <div ng-if="column.new"> {{ contador = contador + 1 }} <span ng-if="contador === 1"> <div class="alert alert-danger">TESTDASDALGO</div> <...
asked by 15.02.2017 / 18:01
1
answer

Manipulate Firebase data in controller with angle 1

I'm working with Angular 1, angularfire and Firebase. I made the following call that returns the following data to me: var _refLista = firebase.database().ref() $scope.lista = $firebaseObject(_refLista.child('listas').child(idLista)) console.l...
asked by 15.02.2017 / 01:12
1
answer

AngularJS - NG-Click to repeat block of HTML

I am developing a "dynamic" form, where users choose the sequence, quantity, and which fields they will fill. Then I used ng-click to repeat the form's HTML code as follows: The buttons: (There are 3 buttons, one for text, one video, another...
asked by 12.01.2017 / 04:04
1
answer

How to insert and unhide a list of items in the database

The code below allows insertion of n items in the array $scope.items[] : var app = angular.module('app', []); app.controller('controlador', function($scope, $http) { $scope.user = {}; $scope.produtoTrib = {}; $s...
asked by 02.02.2017 / 11:48
1
answer

Angular js reload

Person, I noticed that whenever I reload the page, while page is being loaded, it shows all the keys {{}} of the scopes of my project, is it normal? the page containing the scopes coming from a get json is in php ....     
asked by 05.01.2017 / 20:45
1
answer

Access methods through a parent component in a child with Angular 1

Hello, I'm having a lot of trouble getting information between 2 components working with Angular 1. This is my example: angular.module("parent",["child"]).component("parent",{ template : "<p> <child name></child> </div&g...
asked by 26.12.2016 / 18:57
1
answer

Show and hide div after filter with AngularJS

Hello. I have the following filter: <div ng-repeat="user in users|filter:search| filter:selectedCategories| filter:selectedType| filter:selectedDate| orderBy:'+id':true| limitTo: 10"> You want to put the text "Last users" when the...
asked by 17.01.2017 / 16:21
1
answer

Change header text according to open page [closed]

I need to change the header text every time I change pages. Could someone help me ?? /     
asked by 01.12.2016 / 19:33