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
-
0
votes1
answer122
viewsView ng-model’s JSON as the selected dropdown option
Hello, I’m having doubts if that’s possible. For example, I have a dropdown with a JSON array of courses on ng-options: <select name="curso" ng-options="curso.cursoId.sigla + ' - ' +…
-
0
votes2
answers107
viewsHow to use template in directives with restrict M (comments)?
I’m trying to use the option restrict with the value 'M' (for the angular work through comments) to create a directive. However the comment is not incorporating the value I am adding into template.…
-
0
votes1
answer85
viewsAngularjs - directives do not work via ajax
I have a page: index.php and the app.js. in my app I make a load for main.php which is the initial loading of the site. within the main he will bring select, div with ng-repeat, ng-source, etc.. But…
-
0
votes1
answer82
viewsReturn current row value of a Tree-grid-Directive tree
I’m using the Tree-grid-Directive (https://github.com/khan4019/tree-grid-directive) in an Angularjs application and would like to know how to return the object representing the current row in the…
-
0
votes1
answer122
viewsWhen you place several graphs on a page, the graphs repeat the points of the previous one
I am developing an application using Angularjs and Highcharts, which: 1-Recovers a list of objects from a Webservice function getColetorPorSala() { webService.getColetores($scope.device,…
-
0
votes1
answer403
viewsMap opens bugado
Good morning! I have a web application, where I use a leafletjs map (http://tombatossals.github.io/angular-leaflet-directive/#!/) and openstreetmap as Tile. The map works perfectly, I can interact…
-
0
votes2
answers210
viewsCountdown incorrect date
I’m using the Countdownjs to enter a count in my project but it is returning the incorrect day. I am using Angularjs, follows below the directive I created for counting:…
javascript html angularjs angularjs-directives countdownasked 7 years, 10 months ago Maurício Krüger 1,848 -
0
votes1
answer358
viewsAngularjs - directive and view are not working properly
I’m making a small application for my internship, for studies and everything, but even if I follow all the steps, there’s something wrong, I can’t make the angular (version 1) render the view or the…
angularjs angularjs-directives angular-ui-bootstrap angular-viewsasked 7 years, 10 months ago Márcio Eric 447 -
0
votes1
answer278
viewsng-include does not work after using a directive
I needed to make a dynamic controller, but when I use the directive data-ng-dynamic-controller my ng-include doesn’t work someone knows what can be? ng-Dynamic-controller directive…
-
0
votes1
answer49
viewsWould it be interesting guidelines using http.get?
This is a piece of html: <tr ng-repeat="projeto in projetos"> <td>{{projeto.name}}</td> <td>{{projeto.status}}</td> </tr> It uses a controller that does the…
-
0
votes2
answers575
viewsAngular does not recognize a variable out of control
I have a question, I have searched in other forums and I did not find the solution. I did a test on a code below just for demonstration. *//dentro do controle do angular*…
javascript angularjs angularjs-directives angularjs-scopeasked 7 years, 9 months ago Pedro Lucas Lima 1 -
0
votes1
answer83
viewsAdd event to a Directive element
I have a Directive that within it has a list. This list is populated after the successful response of an ajax call. For this reason my Directive link function does not find this list as soon as the…
-
0
votes0
answers82
viewsDirective does not work with dynamic properties
Whoa, whoa, guys, whoa. I’m developing some custom directives around here, and they need to have properties added flexibly (like an ng-class). I was able to develop the mechanism to do this,…
-
0
votes1
answer365
viewsAngularjs ng-click called twice
I am using the ng-click to make a common javascript call. But it is being called/fired twice when I click on the call. My directive: angular.module('myApp.directives').directive('cadastrarPost',…
-
0
votes2
answers265
viewsCreate Directive Attribute for Date Month/Year in Angular JS
How to create a date formatting Month/A I developed as code below, and it is not going through the console menus, IE, is not entering the link: Note: there is no error in the console. <div…
-
0
votes1
answer39
viewsCreate a Directive that forces the bind of a form
Following a publication by Fernando Mantoan, the thing seems to be quite simple, creates the Directive: myApp.directive('forceBind', function() { return { require: '^form', priority: -1, link:…
-
0
votes1
answer563
viewsHow to pass bidirectional parameters to an Angularjs directive
I need the attribute parameterID="{{autor.ID}} which in the Directive is parameterID: '@' be updated as soon as it is changed, that is, I need the bind to be bideretional, I saw in several places…
asp.net-mvc angularjs asp.net angularjs-directives bindingasked 7 years, 2 months ago Nicola Bogar 1,149 -
0
votes1
answer85
viewsView in ngModel Firestore return
How to view data returned from the Firestore in an Angular ngModel directive? I would like to take the data that is returned from the Firestore and display in an Angular ngModel directive,…
-
0
votes1
answer500
viewsClear input - ng-model - change
I own a md-select where according to the selected, I create some div’s using ng-if. These div’s created have in 02 of them equal models (ng-model). Therefore, when you change Md-select to another…
-
0
votes1
answer21
viewsDoes precedence in attribute/event statements in Tags make a difference? Angular2+
I work with Angularjs and Angular2+ almost two years ago and recently, in Angular2+, I came across a different situation that made me wonder if it was a coincidence or because of the version of…
-
0
votes1
answer34
viewsUpdate tbody when selecting option in ng-options
I need to update a div after selecting the ng-option option. Controller.js $scope.prop = { "type": "select", "name": "Service", "value": "CDI", "values": [ "CDI", "IBOVESPA"] }; index.html <label…
-
0
votes1
answer104
viewsHow to reload an Angularjs Directive in the Controller?
Personal greetings, I am developing an app with login and I am using Angularjs, but I have a cruel doubt when logging in the user. It turns out that I am using the user menu via Directive, when the…
-
0
votes1
answer36
viewsAdd multiple transcludes to a Directive Angularjs
I’m creating a menu component in Angular 1.5.8 where other components such as dropdowns, Search button and etc. Those templates shall not be added to the code of the Directive - they will be added…
javascript angularjs angularjs-directives componentsasked 5 years, 12 months ago Marcos Henrique 104 -
0
votes1
answer95
viewsHow to receive a directive within a component in Angularjs
This photo exemplifies what I wish to do: Link to TOTVS Angularjs documentation This is the excerpt from the form where I’m trying to do this. I’m getting the components required, number and…
angularjs angularjs-directives angularjs-scope angularjs-componentsasked 6 years, 2 months ago Rafael Zulianeli 1 -
0
votes1
answer58
viewsCreate line in a dynamic way
The doubt is the following I need to create a row in my table always the date change how I could do it follows the table: <table class="table table-striped" height="100%"> <thead>…
-
0
votes1
answer38
viewsHow not to show element that has no content using Angular js?
I have to list to the user a message within a panel depending on the "Radio" that face will click to show a message. has a radio as YES and another as NO. If he clicks yes, he will have to show you…
-
0
votes1
answer53
viewsinject dependency into a link function in a Directive Angularjs?
Personal I am making a Directive(component) that needs a dependency $compile, I am doing the operations on the directive link and need the $compile inside of it only that I am not managing to inject…
javascript angularjs front-end angularjs-directivesasked 5 years, 10 months ago Marcos Henrique 104 -
0
votes1
answer743
viewsAngular NG-FOR and NG-IF
I am trying to create a sidebar with dynamic links, but there is an error. Component. import { Component, OnInit } from '@angular/core'; @Component({ selector: 'pl-access-full', templateUrl:…
angular typescript bootstrap-4 angularjs-directivesasked 5 years, 9 months ago Leonardo Vinicius 335 -
0
votes0
answers67
viewsPage shows Angular error
I took a page for maintenance and noticed the following error: I suspect that the angular directories must be incorrect, but even when changing them and putting the link caught on the internet (CDN)…
-
0
votes1
answer119
viewsChange graphics colors with chartjs
Guys, I’m using Chartjs to create a Dashboard and I wanted to change the colors of the graphics. I found the Patternomaly library that assists in these changes, but I am not knowing how to import in…
-
0
votes0
answers112
viewsAngular: @Input does not work with select/mat-select
Hello, I am creating reusable components with angular 8, and I need to exchange parameters between them using the @Input developer, but this does not work when I use native mat-select or select…
-
0
votes1
answer215
viewsBuild Docker with angular Node
I need a little help with Docker, I need to build to generate an image, but I’m having the following error: Step 9/10 : COPY --from=angular /app/dist/Docker-softplayer /usr/share/Nginx/html ERROR:…
angular docker angularjs-directives docker-compose docker-windowsasked 4 years, 2 months ago Nasser Othman 11 -
-1
votes1
answer610
viewsHow to change the font size of all pages using Ionic 3’s Range?
I have the following html code [Settings.html] <ion-item> <ion-range min="1" max="4" step="1" snaps="true" [(ngModel)]="saturation" color="grey"> <ion-label range-left…
-
-1
votes1
answer23
viewsCalculate the total price of the column with ng repeat
I am trying to sum up in the column of total prices, but it is not updated as you search, the value keeps the total sum and not the items that are showing. angular.forEach($scope.receivables,…
-
-1
votes1
answer12
viewsBalance based status update
I am developing a project with typescript and am unable to use js in it. this project has several routines, and in most of them has this status question, whether it is open, closed or blocked…
-
-2
votes1
answer85
viewsHow to load a method as soon as the page is loaded ? Angularjs
I have a method, carregarpagina(); that needs to be loaded as soon as the page is loaded. How do I do this on Angularjs.
javascript angularjs angular angularjs-directives ecmascript-5asked 5 years, 10 months ago Dan100 295 -
-3
votes1
answer262
viewsRead Json Angular 9 format
my api returns a json format as follows { "Errors": [], "Result": [ { "CompanyName": "teste inicio", "FantasyName": "inicio" }, { "CompanyName": "teste meio", "FantasyName": "meio" }, {…
angular typescript front-end angularjs-directives angular-materialasked 4 years, 7 months ago Thiago Ubiratan 353