Questions tagged as 'angularjs'

1
answer

Post in Facebook timeline

I'm setting up a website where the user can request that content be posted on his timeline without him needing to be sharing. Well I had the following doubt, seeing the return of this link: link , I would like to know how I can do to send a pos...
asked by 26.10.2014 / 17:57
1
answer

Angular Format-date with date decreased by one day

I'm using an angular directive to handle dates My policy is this: app.directive("formatDate", function() { return { require: 'ngModel', link: function(scope, elem, attr, modelCtrl) { modelCtrl.$formatters.pus...
asked by 19.02.2018 / 19:13
1
answer

Print with setInterval in the same place

I need to make sure that when "filling ..." is printed by setInterval , it's exactly the same place as the first impression. It turns out you're going down or forward. Is there any way to do this, print several times in the same place in 3...
asked by 02.09.2017 / 02:10
1
answer

Problems with angular-input-masks?

I'm trying to use this module that is available in the github and I think this module is very complete, it provides the masks that I need, however its documentation is very confusing. The question is as follows, I cloned the gihub project a...
asked by 06.09.2017 / 21:33
2
answers

Angular filter html

I have an ng-repeat that returns me a list. Every line, I have a default text that appears if a variable is > 0 So far so good. How do I add in the filter only show the record when the default text is filled in? The content is in...
asked by 05.02.2018 / 12:44
2
answers

Get any variable of an array that has a certain id in AngularJS

With the following code, I am saying that in the second array contained in the object $scope.listademercadoria there is the property "quantity", and I am declaring it as value 0. $scope.listademercadoria[1].quantidade = 0; Is there a...
asked by 12.10.2017 / 06:43
1
answer

Download a PDF received from an API with AngularJS

I have an API that returns me a PDF file. I want to make angular hitting this route and forcing the download of the PDF file. Today I do this: var blob = new Blob([arquivo], {type: "application/pdf"}); saveAs(blob, 'arquivo.pdf'); The...
asked by 15.02.2017 / 14:25
1
answer

Column join: HTML5 and Angular

Well, I'm wondering how I can do this join with angularjs? I saw that it has ng-repeat-start and end, but I could not implement it.     
asked by 22.02.2017 / 04:50
1
answer

AngularJS - Where to put Jquery / JavaScript functions

I have some functions in jquery that would normally be in a .js file, but when I use Angular where should I put following the good practices? Example: I have a function that determines whether or not my Header is hidden depending on the size...
asked by 07.02.2017 / 21:27
2
answers

Set Inverval when $ on is set

Well, I'm going to be here for an interview. $rootScope.$on("timer", updateApanha()); var arquivoJSON = (JSON.parse(window.sessionStorage.getItem('timeUpdate'))*1000); console.log(tempoDeAtualizacao); function updateApanha(){ setInterval(g...
asked by 07.02.2017 / 14:53