Questions tagged as 'angularjs-directives'

1
answer

Directive is executed 2 times

I have the following "directve": app.directive('modal', ['$window', function ($window) { return { restrict: 'C', link: function (scope, element, attrs) { scope.onResizeFunction = function() { console.log(attrs.id);...
asked by 12.03.2015 / 19:08
1
answer

Enable / Disable angular buttons with values from api

I have my following screen: The side menu comes from an api List with user permissions I have my classes: public class Menu { public int Id {get;set;} public string Nome {get;set;} } public class Item { public int Id {get;s...
asked by 08.08.2014 / 16:32
1
answer

form $ setPristine () does not work + AngularJs

I'm trying to do a cleanup on a form, used $ setPristine () from angularJs ... When attempting to clean a form with: $scope.reset = function(){ $scope.form.$setPristine(); $scope.perfilDeAcesso = ''; }; It works normally but I'm...
asked by 31.07.2014 / 06:06
1
answer

AngularJS Directive using class

I need to create a directive but for the sake of organization I would like to do in a class, but it is giving an error that I can not identify. What I have is the following: My class: class MyDirective restrict: "E" replace: true scop...
asked by 16.10.2014 / 14:33
1
answer

How to receive a directive within a component in AngularJS

This photo illustrates what I want to do: Link to TOTVS AngularJS documentation This is the snippet of form I'm trying to do this. I am getting the components required , number and maxlength within validation ....
asked by 03.12.2018 / 16:21
1
answer

Update tbody when selecting option in ng-options

I need to update a div after selecting the option in ng-option. Controller.js $scope.prop = { "type": "select", "name": "Service", "value": "CDI", "values": [ "CDI", "IBOVESPA"] };...
asked by 08.11.2018 / 12:47
1
answer

Precedence of attribute / event declarations in TAGs make a difference? Angular2 +

I've been working with AngularJs and Angular2 + for almost two years and recently, in Angular2 +, I came across a different situation that made me wonder if it was a coincidence or because of the Angular version I'm using. But does anyone know t...
asked by 14.09.2018 / 20:26
0
answers

How to make an animated menu with directives in AngularJs?

Hello, I'm picking up a little to create a menu like the one below in a project. I've already tested and calling that specific js works, but there for some reason it's not cheering. Do you have any idea how to create with directives? I'm breakin...
asked by 10.06.2018 / 19:17
0
answers

Where can I find ng-webcam documentation (AngularJS)?

I'm working with a simple application using AngularJS that makes use of the webcam. To work with this I'm using dependency "ng-webcam", but I'm not sure how to use it. I searched on some sites, but nothing that really helped me. Does anyone know...
asked by 05.05.2018 / 15:55
0
answers

Change the name of the download file in the Angular

I have a link that perfectly downloads a file: <a ng-if="slide.link && slide.link != 'null' && slide.anexos_id" href="{{ slide.link }}" download="'{{ slide.anexos_name }}'" target="_blank"> <...
asked by 29.03.2018 / 16:48