Questions tagged as 'angularjs'

2
answers

How to solve this error correctly?

Error: [$injector:unpr] http://errors.angularjs.org/1.4.5/$injector/unpr?p0=%24scopeProvider%20%3C-%20%24scope%20%3C-%20LogUserService at Error (native) at http://localhost:8080/web/resources/js/angular/angular.min.js:6:416 at http://localhost:80...
asked by 14.10.2015 / 16:43
1
answer

Angular, use same scope between controls

A question for angular expert, so I can use a scope in several controllers of a module, I can only with service(factory) and or rootScope ? I am in a somewhat bizarre situation. We have a project that the client has a problem in the...
asked by 19.05.2015 / 03:07
2
answers

Make two directives have the same $ scope in the Angular

I have a directive that generates a button, and when I click this button a counter increases by 1. This policy is inserted in two places in my index.html. I would like that when I clicked on any of the buttons, the two were changed ... Here i...
asked by 19.03.2015 / 14:12
1
answer

Get the $ index of an ng-repeat that contains an ng-controller in $ scope in AngularJS

I have an application that uses ng-repeat to list information. So: HTML <div ng-controller="listaCtrl"> <div ng-repeat="item in lista" ng-controller="itemCtrl"> <pre>{{item}}</pre> </div&g...
asked by 22.01.2016 / 14:35
2
answers

OrderBy with ng-repeat nested in angularJS

I need to sort a list, which is within two ng-repeat , but I can only sort within the group of the second ng-repeat and made a jsFiddle that shows my code: link The order I want to work is as in the example below....
asked by 10.10.2017 / 15:16
1
answer

What is the difference between $ animate and ngAnimate?

In Angular 1, we have a Service named $animate . This already comes by default in the Angular. But we also have a library, which is added optionally in the project, called ngAnimate . This is intended to add animations in ng-if...
asked by 15.05.2017 / 21:20
1
answer

Add value with angularjs in ng-repeat

I have the following code: <li ng-repeat="gasto in gastos"> R${{ gasto.valor }} - {{ gasto.descricao }} </li> This prints on the screen the expenses and the description, but I would like to add the expenses, that is to make...
asked by 08.02.2017 / 03:01
3
answers

Conditional phone mask (8 or 9 digits) in Ui Mask. How to make?

I'm using ui.mask to make the input masks. I have a form whose field can receive either a value from a phone or a cell phone. I currently have a input similar to this: <input type="text" ng-model="cliente.telefone" name="...
asked by 24.01.2017 / 17:22
2
answers

How to traverse a hierarchical tree to generate an HTML

I'm having trouble generating a function responsible for traversing and returning a hierarchical tree. Follow JavaSript / JSON code: let tree = { label: 'Elemento A', itens: [ { label: 'Elemento A1',...
asked by 28.07.2017 / 20:14
1
answer

How do I call a phone number right from my ANGULAR JS AND IONIC application

I have an Ionic + Angular Js application that receives the data from the database and in those my data has the phone number as I do when clicking it calls straight from my application. Thank you for helping me     
asked by 10.07.2016 / 11:31