Questions tagged [angularjs-directive]

AngularJS directives are a way to teach HTML new tricks by extending the HTML vocabulary. Directives allow you to manage DOM elements in a declarative pattern, freeing you from low level DOM manipulation tasks.

2
votes
1answer
33 views

How to Pass parameter from AngularJS Directive to AngularJS controller function

Thanks in advance,Actually I want to call a function in controller from app.Directive, Please anyone let me know How I can call?Also I passing parameter to that function?I'm new in angular and here is ...
0
votes
1answer
31 views

AngularJs Directive gives undefined whole time

I'm fairly new to angularjs directives, I've been struggling to get my directive to work the scope.durationTimeInput returns undefined no matter what I do.(function () {'use strict';angular....
-6
votes
0answers
24 views

architectures of angular app for simple portfolio site with form in contact page with integration of firebase? [on hold]

I have confused about how to architectures this simple angular app.Like I am making a simple portfolio site, Its have three navigation as of now:1. Home2. Services3. ContactI would be be ...
-2
votes
0answers
9 views

How to design Timesheet page as below in angular4/5/6

I am new to angularI am looking to create timesheet app where each resources can select the app name and enter the task description and enter the time based on dates from monday to friday 9 hours ...
0
votes
2answers
95 views

Angular Countdown Timer

I came across this angular timer that works perfectly for me. However, I can’t seem to successfully get it to stop when it reaches the countdown date. I basically want it to stop at 00:00:00. Any ...
0
votes
2answers
28 views

ng-class property not working for directive but working for raw code?

I'm trying to refactor an Angular app which is very verbose using directives. As part of the page layout, there is a faux-tab browsing experience (looks like tabs, is actually implemented as normal ...
0
votes
0answers
21 views

Popup only renders after executing the complete code

I have a custom confirmation popup (Yes/No) which i call through angular typescript file (TS) parentpage.tsexport class ManageConfigs implements OnInit,AfterViewInit {@ViewChild('warning') ...
-1
votes
2answers
41 views

Unable to pass interpolated value during transclusion in directives

I am creating an email directive as below,angular.module('app').directive('email', function () {return {restrict: 'EA',transclude: true,template: ...
1
vote
1answer
40 views

Access value of a variable of child directive in parent directive

How to access a variable of child directive in parent directive?I have a parent directive like:<parent-directive><child-directive></child-directive></parent-directive>...
0
votes
0answers
29 views

Auto expand textarea (AngularJs directive)

Need a bit of help with my directive for expanding a <textarea> element to show text as the user types into the field.The idea is fairly simple. <textarea> elements look just like ...
0
votes
1answer
10 views

is it possible in a table 2 column have data different table and one column have fetch another table ->use angular js and mysql

Is it possible in a table 2 column fetch data different table and one column have fetch another table ?use angular js and mysql and how we use ng-repeat here?
0
votes
1answer
23 views

How to retrieve custom property in isolate scope?

I've read quite a lot examples on how to do binding in an isolate scope but not how to retrieve scope custom properties in template.I think the fix must be very simple but I just don't figure out ...
0
votes
1answer
16 views

Properly applying scope in a custom directive to a child element in AngularJS

So I have this custom directive: function numberPickerDirective() {return {template: template,replace: 'true',restrict: "E",scope: {...
0
votes
0answers
10 views

Why doesn't controller watch work when a directive transclude is set?

I'm reading Directives Explained chapter in ng-book The Complete Book on AngularJS. when it talks about transclude option in a directive, it says: If we use transclude, watching for model property ...
0
votes
1answer
19 views

Directive not recognizing passed in variable

I have a a directive that is shown after an event is broadcast. In handling the event, I set the variable I need passed to the directive. But in the scope it is always undefined. I included the '...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,