Questions tagged as 'angularjs'

1
answer

Select option to select otherwise with AngularJS

I recently found this example in JSFiddle to select given option in a select element. I noticed that it is selected as follows: HTML : <div class="listitem" ng-repeat="Choice in Person.Choices"> {{Choice.Name}...
asked by 10.02.2016 / 19:31
1
answer

Comparing angular arrays

I am creating a device for cell ... so I had the following problem: I need to compare if an account has not been paid, and send a warning ... accounts should be paid every month .. if you can not find the name in the other array generate the...
asked by 10.02.2016 / 21:50
1
answer

change classes with angularjs

I need to change the style of an element when it is clicked and if it clicks it returns to the color it was in (like an "advanced search"). I have the following code: <a href="" class="corCinza" ng-click="exibirForm = !exibirForm">...<...
asked by 27.01.2016 / 21:15
1
answer

Make anchor in AngularJS

Hello, I need to create an anchor in which when I click on a link it display block arrow in a hidden div and scroll down the page up to that div. The part of giving block display I've done, what I need is the part where I click the link and the p...
asked by 09.03.2016 / 19:14
1
answer

Variable within quotation marks - Angular

I'm building a hybrid with ionic APP, this one uses the Angular and I'm not very familiar with JS. The issue is that I need to insert a YouTube video in the sentence and I ran into the following question: The video link comes from an external...
asked by 01.04.2016 / 03:01
1
answer

How to use the Angular onBlur? [duplicate]

I want the console value I entered in the cep field to appear in the input after the field loses focus. However, my code is not doing this. html: <body ng-controller="appController"> <div align="center">...
asked by 20.01.2016 / 03:09
3
answers

Create directive for mask

I want to use the xx/xx/xxxx mask in a date field and return the object with the mask, not just the value. I used a ui-mask directive, but it does not return with the mask, I already used model-view-value="true" but it does...
asked by 13.01.2016 / 03:39
2
answers

How to list parents and city in angularJS?

I want to do the following: Brazil Rio Grande do Sul South Africa ... and so on. Can you do this in a table? <table width="500" border="1"> <tr> <td width="200" align="center">País</td> <td...
asked by 12.01.2016 / 23:17
2
answers

How to set data in the localStorage

I have the following code: $scope.loginUser = function (user) { console.log(user); $http.post("admin/php/login.php", user).then(function(response){ if(typeof(Storage) !== "undefined") { localStorage.setItem("chave", "v...
asked by 06.01.2016 / 22:41
1
answer

window.history.pushState

I'm using the pushState function to populate history , so alright, but it's time to use windows.history.back() only to go back once. The function you add is as follows: function activate_page(sel, have_state) { var $dn...
asked by 07.01.2016 / 19:41