Questions tagged as 'angularjs-directives'

0
answers

Get element inside ng-transclude

I created a directive and I'm trying to get a DOM element inside ng-transclude, but when I do a find () looking for elemnto, jqLite does not find HTML using directive: <categorias> <span class="category-name"> categoria </sp...
asked by 22.03.2018 / 13:49
0
answers

Angular No Heroku Does Not Access URLs Typing

I would like to ask a question, I am doing a soft with Angular 5 and Restful WebService when I test local I can access the URLs normally directly when I try to do this with the application in Heroku does not work, it only works things out when i...
asked by 19.02.2018 / 03:45
1
answer

Display in ngModel return from FireStore

How to display the data returned from the FireStore in an Angular ngModel directive? I would like to get the data that is returned from the FireStore and display in an Angular ngModel directive, displaying on an edit screen. person.model....
asked by 31.01.2018 / 00:16
1
answer

How to pass bidirectional parameters to an AngularJS directive

I need the parameterID="{{autor.ID}} attribute that in the directive is parameterID: '@' to be updated as soon as it is changed, that is, I need the bind to be bidirectional, I have seen in several places saying to use parameter...
asked by 29.11.2017 / 01:51
1
answer

Create a directive that forces a form's bind

Following a publication of Fernando Mantoan , the It looks like a simple thing, it's a directive: myApp.directive('forceBind', function() { return { require: '^form', priority: -1, link: function (scope, element, attrs, form) {...
asked by 16.10.2017 / 08:02
1
answer

AngularJS ng-click called twice

I'm using ng-click to make a common javascript call. However it is being called / triggered twice when I click on the call. My policy: angular.module('myApp.directives').directive('cadastrarPost', cadastrarPost); cadastrarPost.$inje...
asked by 07.08.2017 / 19:10
0
answers

Policy does not work with dynamic properties

Oops, guys. I'm developing custom directives here, and they need to have flexibly added properties (like an ng-class). I was able to develop the mechanism to do this, however, I came across a bizarre problem: it adds the property but it does not...
asked by 25.07.2017 / 16:49
1
answer

Add event to an element in directive

I have a directive inside it that has a list. This list is populated after the successful response of an ajax call. That's why my directive link function does not find this list as soon as the page loads, only when ajax loads. How do I apply...
asked by 23.06.2017 / 16:10
1
answer

Automatic scrolling of angled items

I have a list of items, inside a div, with the ng-repeat angular directive. And you need to use an automatic scrolling, similar to this DEMONSTRATION (it is, use the super-treadmill plugin of jquery). How can I do this with angular js (version...
asked by 04.05.2017 / 01:43
1
answer

ng-include does not work after using a policy

I needed to make a dynamic controller, but when I use the directive data-ng-dynamic-controller my ng-include does not work does anyone know what it can be?    ng-dynamic-controller directive appModule.directive('ngDynamicController'...
asked by 20.04.2017 / 06:13