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
-
16
votes1
answer1408
viewsPick width child element in Angular directive
Next I have a table fed by a simple routine. I need to make the scroll to tbody fixed. So far so good. I could do N shapes. To try to make the table responsive I am using a directive to calculate…
-
9
votes2
answers1137
viewsHow to use a module in Angularjs?
I have the following code in Angularjs but I have the error: Error: [$injector:unpr] Unknown Provider: Authenticationprovider <- Authentication My code is this: app js. angular.module('app')…
-
8
votes1
answer719
viewsWhat is the difference between "=" and "<" in the "Scope" options of a customised directive?
In Angularjs, I was creating a directive. I realized that by using the sign = to capture a certain controller scope value, when I changed this value, the parent controller value was also being…
-
6
votes1
answer218
viewsHow can I force a directive to work only if it is within a specific directive?
I am trying to make ngPanelHead, ngPanelBody and ngPanelFoot directives need to be within the ngPanel directive, otherwise an error is presented on the console. I tried with require however it is…
-
4
votes2
answers6542
viewsCurrency mask problem in input
I have a problem with the coin mask with Angularjs. I found this thread in Stackoverflow in English. The mask works beauty by typing in input and arrives right in the controller, but when I send…
-
4
votes2
answers4721
viewsAngular JS - Take the value sent by the select of a directive
I have a directive that returns me a select that when selected I want to take the value of the code by the controller and make an http request. Plunker: http://plnkr.co/edit/fnCJj15XJN1kQvKq1OtZ…
-
4
votes1
answer1419
viewsHow do I access a dynamic id via a directive?
Problem: I need to within an Angularjs directive, access a dynamically mounted id within an ng-repeat, and thereby manipulate the class of a specific item. Briefly, I’m using the bootstrap accordion…
-
4
votes3
answers1233
viewsPass directive inside template
I have the following scenario: I have a directive called modal and I want to pass another directive as content, the code is as follows: maintain-supplier-formulario.js "use strict";…
-
4
votes1
answer527
viewsCompile directives from the Controller
I have a table that is rendered dynamically when passing an array of data to it. I have access to the data of each "row" as follows: { "data": function (data, type, val, meta) { return "<div…
-
4
votes3
answers327
viewsUpload a file with parameters in Silex with Angular-File-Upload
I am doing a work with Angular (version 1.5.8) and using Silex as Web Service. To send the file to the Web Service I am using Angular-File-Upload (version 1.5.1) and my Angular service is like this:…
angularjs upload angularjs-directives file-upload silexasked 8 years, 3 months ago Vinicius da Silva 131 -
4
votes2
answers13159
viewsError: Access to Xmlhttprequest at 'file://...' from origin 'null' has been blocked by CORS policy
Hello, I am trying to add an html file inside another page through a directive. And give this error: Access to Xmlhttprequest at 'file://.../Angularjs/Formul%C3%A1rio%20Simples/views/client.html'…
-
3
votes1
answer1390
viewsHow to select a value from an <option> by Angularjs
Well, I do an interaction to get the options, and I want to select the first option <select class="form-control" name="accounts" ng-model="vm.deposit.account" ng-options="account.account as…
-
3
votes2
answers757
viewsAngularjs Directive - Good practice
I know it is possible to create a Directive in Angularjs in the following ways: <div angular></div> <div class="angular"></div> <angular></angular> <!--…
-
3
votes2
answers58
viewsHow to use jquery in an Angularjs directive?
I tried to put a function in jQuery within a directive, but it’s not working. I searched and found in several places talking about jqLite, but I could not convert jQuery to jqLite.…
-
3
votes2
answers1033
viewsMake two Directives have the same $Scope at Angular
I have a directive that generates a button, and when I click this button a counter increases 1. This directive is inserted in two places in my index.html. I wish that when I clicked on one of the…
-
3
votes3
answers2843
viewsController Angularjs Statement
Following the script below generated a doubt in which declaration to use, in the Angularjs documentation I found the two forms in different examples, but I did not find an explanation of which…
-
3
votes1
answer802
viewsAngular + Chartjs
I’m starting to use the Chart.js Library by following the site http://jtblin.github.io/angular-chart.js/#getting_started But I’m having difficulty, when I rotate the html page, nothing happens, all…
-
3
votes1
answer475
viewsJSON array with Angularjs checkbox
I am trying to form a JSON with what is selected by checkbox, but when I select it inserts, but when I try to remove the check in, it inserts again. The correct would be to work in that way, but…
-
3
votes1
answer963
viewsUi-Routes get logged in user id
I’m using ANGULARJS/UI-ROUTES, and currently my application after logging only gets the email, I need to also come the ID of the logged-in user. The question of the routes I can, the problem is that…
angularjs angularjs-directives angularjs-scope angular-module ui-routerasked 8 years, 6 months ago Biellx 461 -
3
votes1
answer722
viewsAngular Material Datepicker does not work
I have studied programming Frond-End and I took several tips from friends on Angularjs and refer me some demo sites of Angularjs, at the moment I am trying to implement Datepicker and I am not…
-
3
votes1
answer589
viewsCreate a multiple filter with only one input
On my system, I created a directive that gets the parameters needed to update a table, which would be this: function filtroAngularTable() { return { restrict: 'E', scope: { lista: '=', config: '='…
-
2
votes2
answers12115
viewsDoubt with ng-if or ng-Ide Angularjs
I’m trying to use the directive ng-if to hide a button as soon as I click another but could not find any example and found the documentation unclear, could someone give me an example?? using this…
-
2
votes3
answers926
viewsUsing find at angular
I’m studying angular and I’m in trouble. I created a directive called acao, I’m trying to get inside it the click on the element ul > li, but it doesn’t work using find and I can’t put ng-click…
-
2
votes1
answer43
viewsAngularjs Routerprovider configuration error
I imported the angular-route.js and made the following configuration : <script type="text/javascript"> angular.module("layoutxepa",["ngRoute"]); angular.module("layoutxepa").config(function…
-
2
votes3
answers1534
viewsCreate global function in Angularjs?
I’m working with $mdToast which is used in multiple locations for notification. I would like to create a global function for him, which would be something like this: function alerta(texto){…
-
2
votes1
answer223
viewsAngularjs - Directives: Element or Attribute
I’m new to Angularjs and I’m looking at the Directives part, and I’m seeing that there is a restrict element and a restrict attribute. I understood what each one does, but it was not clear when I…
-
2
votes2
answers218
viewsIs there a way to not fill HTML with directives?
Using the directive ng-click to catch an event by clicking one link would be something like: <a ng-click="call('home')" href="#" title="ir para homepage">Home</a> But this wouldn’t be…
javascript angularjs angularjs-directives angularjs-scopeasked 9 years, 11 months ago Renan Gomes 19,011 -
2
votes1
answer1117
viewsSet $Scope value of a Controller from an Angular Directive
I’m trying to make from an event in a Directive, is called a method belonging to a Controller, the Controller method call is already correct, only it seems that the $scope, within that method is…
javascript angularjs angularjs-directives angularjs-scopeasked 9 years, 6 months ago Fernando Leal 9,770 -
2
votes1
answer96
viewsAngularjs directive blocking ngModel
In an angular application, I designed a small system of tabs and in this system I implemented a directive to create the events of onclick on each of the tabs. basically the project looked like this:…
-
2
votes1
answer773
viewsHow to make this directive return in ng-bind the sum of the results?
angular.module( 'isfModFinance', []) .directive( 'isfModFinance', function() { var validElementScope = angular.element('<div>{{ model.input }}</div>'); var validElementTotal =…
javascript angularjs angularjs-directives angular-moduleasked 9 years, 2 months ago Ivan Ferrer 12,096 -
2
votes1
answer512
viewsPass values between directives
I’m starting with angular and have a question. I have the following scenario: I created a directive with responsibility to show message on the screen. Below her code. message js. "use strict";…
-
2
votes1
answer1888
viewsHow to insert an Angular directive into HTML using an external script?
I need to insert a directive within the code of a calendar that is already implemented on a site I’m creating, but I found a problem: in HTML, the directive is printed normally, but Angular does not…
-
2
votes1
answer60
viewsBanner Rotary
Hello, use Angularjs and wanted to put it to change the slides from 10 in 10 sec. I’ve tried a few codes and I couldn’t. Anybody got a tip? Here comes my controller. (function () { 'use strict';…
.net angularjs angularjs-directives angularjs-scope angular-moduleasked 8 years, 6 months ago Biellx 461 -
2
votes1
answer660
viewsUi-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: When I click on "My registration data" it is…
angularjs angularjs-directives angularjs-scope angular-routes ui-routerasked 8 years, 5 months ago Biellx 461 -
2
votes0
answers25
viewsInitialize some user parameters using Angularjs and Google Cloud Endpoints
I am trying to initialize some user parameters using Angularjs and google cloud endpoints. Through a getProfile endpoint, I need to get user information like photo, description, age to show on…
angularjs angularjs-directives google-app-engine angularjs-servicesasked 8 years, 2 months ago Filipe Rebollo 43 -
2
votes1
answer254
viewsAccess Function declared in the Directive controller by transcluded objects
I am trying to create a Directive that has its Scope isolated, but that has some functions that she will be responsible for doing p/Directive. It is a div that contains a table and an "Add" button…
-
2
votes2
answers739
viewsMap Leaflet - Access extends
Hello, I’m using the directive "Angular Leaflet Directive" (http://tombatossals.github.io/angular-leaflet-directive/#!/) next to the Leaflet map. My question is the following, there is the…
-
2
votes2
answers925
views$window.location.Reload()
I use Angularjs in a webapp, in this webapp I have implanted a map showing my clients from a marker. The map I’m using is Leaflet (http://leafletjs.com/) with a directive for Angularjs…
-
2
votes0
answers98
viewsHow to use ng-repeat inside the ui-Carousel library?
Carousel works, but I’m not able to ng-repeat within the directive, how could I solve this? In the controller I have the collection: $scope.steps = [ {id:1, text: 'nnoonon 1', current:1,…
-
2
votes2
answers832
viewsFocus on the next input when reaching the maximum number of characters
I created a directive to move the cursor to the next field when it reaches the maximum character size, this way below: var app = angular.module("myApp", []); app.directive("moverProximoCampo",…
-
2
votes1
answer977
viewsReuse component in another component and get child data in Angular
I made a zip code search component this way: I created the component, its HTML is: <fieldset [disabled]="isLoading"> <div class="row col-md-6"> <div class="row"> <div…
-
2
votes0
answers84
viewsSystem search using Angularjs and java
I have a Java back-end: JPA, Hibernate. Entities working correctly, I even have a class Searchresource @Path("/search") @ApiDefinitionBase @Produces(MediaType.APPLICATION_JSON)…
-
2
votes0
answers53
viewsHow to put two controllers on one page without one interfering the other
I am making some forms with Angular and in some of the cases I need the person to put some information to save the foreign key, basic example: Let’s assume the sale of a product and the invoice…
-
1
votes2
answers1019
viewsHow to make nested directives Angularjs?
The idea is to make sure that when calling a single directive, it renders the directive corresponding to the preconfigured CSS framework. For this I have a global variable var window.styleSource =…
-
1
votes0
answers428
viewsKendo UI Grid in an Angularjs Directive
How to create a Kendo-grid with reusable options using Angularjs? In addition to the default settings, the grid should dynamically include a column checkbox with the option to select all lines. The…
-
1
votes1
answer140
viewsui-select - How to put "name" attribute
Little problem here for a change, someone already worked with ui-select, I’m using in a project here within a client registration form to select states and cities, this working beauty, but it does…
-
1
votes1
answer915
viewsTree menu / Collapse with three levels
I’m creating a navigation sidebar for an Angularjs application. The structure is basically a tree menu, but each level has different interactions (which I will still build). For example, the first…
javascript angularjs menu angularjs-directives angularjs-scopeasked 10 years, 1 month ago Samuel Guimarães 121 -
1
votes3
answers506
viewsApply "datepicker" to element after angular call
I’m having a problem, when loading an HTML block from the page via the angular, the elements that have the class ". datepicker", activate the jquery of the plugin "datepicker", however, as I…
-
1
votes1
answer43
viewsUse of filter in ng-repeat in jade templates
Guys I think I’m doing something wrong but I’m not finding the error in the code. ul(class='list-group') li(class="list-group-item", ng-repeat="v in votadas | filter: '-votos'") h4 Música: {{…
-
1
votes2
answers6143
viewsDisplay float field in currency format using Filters in Angularjs
I am working with Angularjs and to show the user a field using a comma, I am unfortunately obliged to do a replace at the point. I wonder if there are any filter or directive to solve my case. In my…