Questions tagged as 'angularjs-directives'

3
answers

Create global function in angular js?

I'm working with $ mdToast which is used in multiple notification locations. I would like to create a global function for it, which would look something like this: function alerta(texto){ $mdToast.show( $mdToa...
asked by 03.12.2015 / 19:04
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

AngularJS - Directives: Element or Attribute

I'm new to angularJS and I'm seeing the directives part, and I see that there is the restrict element and restrict attribute. I understood what each one does, but it was not clear when to use one or the other, or both?     
asked by 06.02.2016 / 21:01
1
answer

Ui-route More than one view

Hello, I work with angular, and I'm using UI-ROUTE I'm trying to put two views on the same page and n with you. Here's how I want the views to appear: WhenIclickon"My cadastral data" it is for him to display on the right side the info of the...
asked by 01.06.2016 / 03:53
1
answer

Rotating Banner

Hello, use angularJS and wanted to put it to change the slides every 10 sec. I already tried some codes and I could not. Does anyone have a tip? Here's my controller. (function () { 'use strict'; angular.module('scases') .controller('Banne...
asked by 16.05.2016 / 16:10
2
answers

Leaflet Map - Access extends

Hello, I'm using the "Angular Leaflet Directive" directive ( link ) with Leaflet map. My question is the following, is there the possibility of inserting some variable or scope in this extension? angular.extend(vm, { // ESTENDE AS PROPR...
asked by 19.01.2017 / 19:21
1
answer

Pass values between policies

I'm starting with angular and I have a question. I have the following scenario: I created a directive with the responsibility of displaying message on the screen. Below her code. message.js "use strict"; angular.module("layout") .directive...
asked by 27.10.2015 / 01:32
3
answers

Using non-angular find

I'm studying angular and I'm having a problem. I created a directive called action, I'm trying to get the click on the element ul > but it does not work using find and I can not put ng-click because it may contain N tags ...    Example...
asked by 24.03.2015 / 20:21
1
answer

Find element with dynamic class with ng-class

I'm adding classes using ng-class , but when I try to find this element starting from a directive, I can not find them. Link to a plunker with example code: link .directive('step1', function(loadTemplate) { return { link:...
asked by 25.02.2014 / 23:15
1
answer

Angularjs - add class to a link based on url with binding

I'm trying to add an 'active' class to my link as follows: <a href="#/requests/{{request.id}}/processes" active>Processes</a> That produces output (chrome console) <a href="#/requests/7cgSiSdaIR/processes" active="">Proc...
asked by 15.02.2014 / 23:13