Most voted "angularjs-directives" questions
Directives are extensions of the HTML language, which provide the possibility to extend/extend the behavior of HTML elements. Directives allow you to manage DOM elements in a declarative pattern, freeing you from low-level DOM handling tasks.
Learn more…137 questions
Sort by count of
- 
		1 votes0 answers430 viewsRender Iframe google Maps with AngularjsI’m building a directive to render a google maps iframe inside my app. And I managed to do it this way: <google-iframe location="item.Location"></google-iframe> js directive. function… angularjs google-maps iframe angularjs-directivesasked 10 years, 11 months ago Marcelo Aymone 3,366
- 
		1 votes1 answer601 viewsNg-repeat and Angularjs Beginner ErrorI’m starting at the angular and I still don’t quite understand the workflow of it. The code below does not work: <body ng-app> ... <div ng-controller="Grid" class="gol-grid"> <div… 
- 
		1 votes2 answers331 viewsSynchronize objects of the same Array with the index of different pagesUse the angular-bootstrap-lightbox, which serves to show magnified images by clicking on they. I put the images on different pages, using the ng-repeat and the custom filter| filterBy: ['id']: ''",… 
- 
		1 votes2 answers135 viewsHow to check in an Angular directive if the parent Node is a link?I need to make a check if my directive xx-chip is within a link. I cannot use jQuery in this application, only Angular. <a href> <xx-chip></xx-chip> </a> Thank you.… 
- 
		1 votes1 answer467 viewsDynamic Directives with AngularjsI’m building an application that needs to render a dynamic form. The form data comes from a json, and in it, I have the configuration of the fields. Following example: { "Fields": [ { "title":… 
- 
		1 votes1 answer430 viewsDirective to create div, label and inputGood morning, I created a directive to create a div, a label and an input, but the ng-model attribute is not working. In the example, the dynamically created does not work which is the first, and… angularjs-directivesasked 8 years, 11 months ago Silvério Sepulveda 11
- 
		1 votes1 answer43 viewsLoad database pagesHow do I load database pages, so that Angularjs directives work? Currently, I am loading the pages with jQuery. The page loads perfectly. It turns out that when this occurs, the Angularjs boot cycle… 
- 
		1 votes1 answer730 viewsAngularjs - ng-show directive is not working in java applicationGuys I’m trying to use the directive ng-show Angularjs in a Spring MVC application, but I’m not getting it, it’s just not working. Note: I am using Angularjs normally, the other directives, but… 
- 
		1 votes1 answer58 viewsSet the Angular 2 component/app in the <body> tagI would like to define the tag <body> as root of my Angular 2 application instead of creating a daughter tag <my-app> (for example). 
- 
		1 votes0 answers379 viewsngTable in a directive does not workI’m trying to create a directive that uses ngTable to paginate my tables, however, I was not successful. Abstract the angular code that is used to make the pagination, playing it within a directive,… 
- 
		1 votes1 answer456 viewsProblem with simple validation messages directiveI have the following directive: //diretiva responsavel por facilitar a passagem de campos para a validação App.directive("validateMsgFor", function(){ return{ templateUrl :… 
- 
		1 votes1 answer917 viewsHow to set an initial date in this countdown done in AngularjsI created a module in Angular JS that takes the current date of the clock and starts counting to the end, but I need to be able to set an initial date to start counting that is not based on the… javascript angularjs angularjs-directives jsfiddle angular-moduleasked 10 years, 2 months ago Ivan Ferrer 12,096
- 
		1 votes1 answer284 viewsProblem with Datepicker AngularjsGood night. I’m wearing a directive for a datepicker and I’m getting the following error. TypeError: Cannot read property 'split' of undefined at Object.DPGlobal.parseDate… 
- 
		1 votes0 answers151 viewsReturning daughter routes in an abstract view in Angular JSI am making a directive to create a Wizzard system, where the navigation of this Wizzard will depend on the number of routes that is set on a parent route (Abstract). I need to know if there’s any… 
- 
		1 votes7 answers8821 viewsRegular expression for phones?I created a Directive to format phones with or without digit 9. Now I need a regular expression to validate whether the number format is correct on ng-pattern. I created a regular expression but I’m… 
- 
		1 votes1 answer293 viewsDirective is not being called, Angularjs custom validatorI have the following directive: .directive('validateCPF', function () { return { require: 'ngModel', link: function (scope, element, attrs, ctrl) { ctrl.$validators.cpf = function (modelValue,… 
- 
		1 votes0 answers97 viewsError passing request attribute to angular directiveI have to pass an array of objects to an angular directive, but I have the error below. How do I resolve ? angular.js:12330 Error: [$parse:ueoe] Unexpected end of expression: [{… java angularjs spring angularjs-directives attributesasked 9 years, 7 months ago Mayllon Baumer 586
- 
		1 votes2 answers1915 viewsHow to use Directive templateUrl with external controller?I am decommissioning some components and I am in doubt when creating a controller linked to the template. I have for example the Login screen, in my Directive do:… 
- 
		1 votes1 answer422 viewsWhen clicking on link perform Reload in div with Angular. ng-click, ng-include, controllerHello! I have this link: <ul class="nav child_menu"> <li><a href="graficos.html">Gráficos</a></li> </ul> When clicking on the link you should display the… 
- 
		1 votes1 answer51 viewsDisplay which directives are being used on the pageIs there any way we can find out which directives are being used on a page ? Below follows an example <div> algumas coisas ... <minhadiretiva></minhadiretiva>… 
- 
		1 votes0 answers342 viewsAngular2 Update variables between componentsI’m starting at the angular 2 and would like to know the best way to do the following: I have 2 Components, Toolbar.Component and profile.Component. When the user updates the name of the logo and… 
- 
		1 votes1 answer633 viewsDirective to restrict regular expression typing in AngularjsI wrote a directive to inhibit typing from specifying a regex. However there are two bugs in this solution: In the first example the input must allow only numbers or point-followed numbers [.], or… 
- 
		1 votes1 answer4763 viewsHow to Get Another Component VariableI have the following situation: utils-Nav-user.component.html <nav class="navbar fixed-bottom navbar-expand-lg navbar-dark bg-dark"> <a class="navbar-brand text-white">ESC - Sistema De… angular angularjs-directives angularjs-scope angular-routesasked 7 years, 8 months ago Ederson Coelho 143
- 
		1 votes1 answer1165 viewsAngular Format-date with date shortened one dayI’m using an angle directive to handle the dates my directive is this : app.directive("formatDate", function() { return { require: 'ngModel', link: function(scope, elem, attr, modelCtrl) {… 
- 
		1 votes1 answer223 viewsHow to create a directive in Angularjs that creates a mask and did not modify the ng-model?I created a directive where it serves as a mask for current account, so when I type a value always the most right value in the input is the digit of my account, until then beauty, is working. The… angularjs angular angularjs-directives angularjs-scopeasked 7 years, 6 months ago Jonathan Guilherme 13
- 
		1 votes1 answer691 viewsRescue data from another angular componentI have a component called login that when you login fills the user object data, I need to take the "job" field of this object and receive in another component. I tried to: login.componentts.: public… 
- 
		1 votes1 answer63 viewsEvent (click) being undone by (Blur)In an Angular form 9 I have a component that in your (Blur) performs some calculations with values existing on the screen. It also makes a subscribe for the back obtaining some information necessary… angular typescript angularjs-directivesasked 5 years, 5 months ago Carlos Eduardo Germano de Souz 11
- 
		0 votes1 answer1011 viewsHow to use an ng-class in the <html> tagI’m using the Angularjs framework and need my tag to receive a dynamic class example: <html lang="en" id="ng-app" ng-app="app" ng-class="app.title"> </html> This app.title will receive a… 
- 
		0 votes1 answer675 viewsform. $setPristine() does not work + AngularjsI am trying to do a cleaning in a form, used $setPristine() from the Angularjs... When trying to clean up a fluffy with: $scope.reset = function(){ $scope.form.$setPristine(); $scope.perfilDeAcesso… 
- 
		0 votes1 answer886 viewsEnable/Disable Angularjs buttons with values coming from the apiI have my following screen : The side menu comes from an Api List with user permissions have my classes: public class Menu { public int Id {get;set;} public string Nome {get;set;} } public class… 
- 
		0 votes1 answer71 viewsAngularjs Directive using classI need to create a directive but for the sake of organization I would like to do it in a class, but it’s making a mistake that I can’t identify. Here’s what I got: My class: class MyDirective… 
- 
		0 votes0 answers178 viewsAngular bind in directive to run after "change" eventI am working with a framework that uses Jquery to make your animations, and for data processing I use Angularjs. So I can update my $Scope, I created a directive that will give a bind to the element… 
- 
		0 votes1 answer363 viewsAngularjs - the ng-class directive is not workingI’m trying to apply this class to is when I roll the page to pin my menu to the top of the screen, but the class is not being set: <div class="page-header-menu"… 
- 
		0 votes1 answer186 viewsDirective is executed 2 timesI have the following "directve": app.directive('modal', ['$window', function ($window) { return { restrict: 'C', link: function (scope, element, attrs) { scope.onResizeFunction = function() {… 
- 
		0 votes1 answer97 viewsScrollbar in ng-view does not workGuys, the following problem happens to me: I’m making a web application and I’m using Angular.js as a framework. I have a div with ng-view and every time you load a page that needs the scroll it… 
- 
		0 votes1 answer59 viewsAngularjs - Call Directive when remodeling pageI have a Directive that determines the size and width of some elements, but when I change the page dimension it doesn’t fit. I would like a way that when the user changes the dimensions of your… 
- 
		0 votes1 answer51 viewsAutomatic scrolling of items with AngularjsI have a list of items, within a div, with the directive of angular ng-repeat. And I need to use an automatic scroll on that list, similar to this one DEMONSTRATION (is, uses jquery’s… 
- 
		0 votes0 answers35 viewsAngular No Heroku Accesses URL TypingI would like to ask a question, I am making a soft with Angular 5 and Restful Webservice when I test the location I can access the URL normally directly when I try to do this with the application in… angularjs-directives angularjs-scope angular-routes angularasked 7 years, 8 months ago Ederson Coelho 143
- 
		0 votes0 answers58 viewsAngularjs + Directive + mfb = Not workingI’m new to angular and I’m testing directives. I have this scenario: angular.module(module) .directive(directive, function () { return { templateUrl:template }; }); <ul class="mfb-component--br… 
- 
		0 votes2 answers1026 viewsHow to use . Directive, modularization and layer splitting? AngularjsNOTE: Until I understood everything, the problem is that I can not do with this code the information that I passed, like nothing. And when I do not work. Can someone please help me?? Hello, I have a… 
- 
		0 votes1 answer242 viewsCreate a directiveHello someone could help me, I’m just starting my teachings in angular and would like to know how I would create a directive for the list of categories and tasks. I have no idea what could be done,… angularjs angularjs-directives angularjs-scope angular-moduleasked 10 years ago Larissa Mourullo 417
- 
		0 votes3 answers994 views$Scope Form Angularjs DirectiveI am having difficulty in creating a directive on the following point. I have a data listing, and in this listing I have a callController controller, and in this listing page I have a modal that… 
- 
		0 votes1 answer199 viewstable Angularjs ordering does not changeI’m making a call from the server to a list of users, the result comes smoothly, but the ordering is not working. HTML <div class="table-responsive"> <table class="table table-striped… javascript angularjs classification angularjs-directivesasked 9 years, 10 months ago Victor Siqueira 638
- 
		0 votes1 answer368 viewsAngular JS - an ng-model directive template does not work within ng-switchTo get more dynamic my directive decided to include the category field that makes the selection of the type of template to be displayed. As it is just a select thought to use ng-switch instead of… 
- 
		0 votes0 answers70 viewsAngularjs new value does not arrive in directiveI have the following directive that builds a modal. Arquivo: login.component.js (function() { 'use strict'; var app = angular.module('myapp'); app.directive('loginComponent', ['loginService',… 
- 
		0 votes1 answer460 viewsMessage appears in modal and page at the same timeI created a "message center" in Angularjs that injects messages on the screen. The message always appears when an error occurs in REST operations or success. This is done by an Interceptor that… javascript angularjs angularjs-directives angularjs-servicesasked 9 years, 8 months ago adelmo00 1,904
- 
		0 votes0 answers677 viewsAngular does not update screenangular.module("manuais", []); angular.module("manuais").controller("manualCtrl", function($scope) { $scope.capitulo_itens = [{ cod: 1, cod_capitulo: 1, tipo: 1, texto: "Titulo de um elemento",… 
- 
		0 votes0 answers362 viewsangular-scroll-Immature does not work when scrolling the screenGuys I’m developing a mobile application using angular, and I’m trying to put together a timeline like this: http://rp.js.org/angular-timeline/example/index.html documentation here:… 
- 
		0 votes2 answers363 viewsDirective AngularI’m having a little problem when creating two buttons using angular Directive only 1 this appearing. How do I solve this problem? <div class="row"> <meu-painel class="col-md-2… 
- 
		0 votes2 answers462 viewsHow to implement Angular features?A little while ago I have studied Angularjs through materials like this; Online Course on YOUTUBE about Angurlajs >>>>> CLICK HERE. So what he teaches shows that we should link the…