angularjs-directive Questions
5
Solved
I am trying to develop an app using Angular 4. But I have received an error message while using
@Input('inputProducts') products: Product[];
The Error is
[tslint] In the class "ProductListC...
Benzo asked 4/11, 2017 at 6:12
5
Solved
ng-class and ng-style both seem to be methods of dynamically setting CSS classes. What is the difference between them?
Puglia asked 13/11, 2014 at 22:51
6
Solved
I'm receiving the error: Multiple directives [gridsection, gridsection] asking for templateon : <div gridsection=""> with this code.
I don't see how i'm using nested directives or what is c...
Aziza asked 15/8, 2014 at 13:59
4
Solved
I'm totally confused as to why my keypress event handler is always one keystroke behind. http://plnkr.co/edit/w3FAXGd5zjrktO6DgOpD?p=preview
<body ng-controller="myController">
<form>...
Bouncing asked 17/1, 2014 at 19:19
18
Solved
I am using ngChange in AngularJS to trigger a custom function that will remove any letters the user adds to the input.
<input type="text" name="inputName" data-ng-change="numbersOnly()"/>
...
Mechanist asked 30/1, 2013 at 22:38
4
Solved
I'm trying to add an attribute to an angularJs element from a directive like this:
element.attr('startOffset', val);
But when I check the element, the attribute added is 'startoffset' where the ...
Posey asked 20/10, 2014 at 1:45
7
Solved
I have an angular 4 form where I am trying to submit data
HTML Code
<form class="form-horizontal" [formGroup]="signupForm"
(ngSubmit)="onFormSubmit()" >
<fieldset>
<legend>Sc...
Melchizedek asked 1/6, 2018 at 6:9
9
Solved
I do not want a user to enter spaces in a text field. I don't want it on submit validation but rather - a space will not show up on the text field when they click it.
Brine asked 5/12, 2014 at 18:56
6
Solved
I can get ng-click to work when the scope is inherited on a directive but not when isolated. UPDATE: The point is that I want the click function to be defined as part of the directive... moving the...
Incommensurable asked 14/10, 2016 at 16:17
4
Solved
I'm looking for a solution to a problem, but I'm not able to find it. It could be in AngularJS or in Javascript (then I'll translate it in AngularJS). The problem is that I have to limit the rows o...
Manta asked 4/1, 2019 at 8:29
12
I am using ag-grid to bind values from a list, Is it possible to copy the value/data in the selected cell. I have tried to copy the value using ctrl+c but its not working is there any other way?
P...
Unrig asked 1/3, 2016 at 11:15
8
I want to know how to do drag and drop by using AngularJs.
This is what I have so far:
<span><input type="checkbox" ng-model="master"><span>SelectAll</span></span>
&...
Authors asked 1/9, 2013 at 5:4
0
I'm loading component template during Drop Event using "createComponent()" method of ViewContainerRef class. all works okay but it loads component with it's Host Wrapper (selector) tag. b...
Muro asked 1/5, 2023 at 12:22
3
Solved
Looking at the videos over at http://egghead.io, I see the author uses console.log to log out the contents of a $scope or scope object. The output in Chrome is a drillable object. However when I do...
Jadeite asked 30/5, 2013 at 16:37
2
Solved
I am learning JavaScript and AngularJS.
I want to disable text selection with Angular Directive.
I have a JavaScript code for that function:
function clearSelection() {
if(document.selection &a...
Hluchy asked 31/7, 2014 at 18:55
4
Solved
Angular Version: 6.0.4 ~ Node Version: 10.4.1 ~ NPM Version: 6.1.0
I've seen this question asked many times, but not answered.
After following these instructions to install angular-datables, and tr...
Sudiesudnor asked 8/7, 2018 at 3:31
5
Solved
If an image on a separate server doesn't exist I'd like to display a default image. Is there an angular directive to accomplish this?
Exultation asked 2/5, 2013 at 23:53
4
Solved
with the help of new Date() how i can achieve this.
my code :
var temp =new Date("October 13, 2014 22:34:17");
console.log(new Date(temp-1));
requirement:
before: Aug 4, 2014 11:59pm (EDT)
afte...
Hysterectomize asked 5/8, 2014 at 10:37
13
The application I'm building requires my user to set 4 pieces of information before this image even has a chance of loading. This image is the center-piece of the application, so the broken image l...
Pannonia asked 30/4, 2013 at 22:59
5
Solved
I am using strict mode and Angular 1.4.7 , I get the following error:
Error: [$injector:strictdi] function($scope, $element, $attrs, mouseCapture) is not using explicit annotation and cannot be in...
Ritchey asked 28/10, 2015 at 5:55
3
Solved
I have a two-way data binding that is not altering the value of the variable sent to the directive.
My directive watches for a trigger and gives focus to the associates element (based on code foun...
Dicot asked 25/3, 2015 at 19:55
3
Solved
I am using the chart js https://www.npmjs.com/package/chart.js and ng2-charts https://www.npmjs.com/package/ng2-charts , to render a doughnut chart.
But, I want the label to appear on the right of...
Nominal asked 6/3, 2021 at 10:12
8
Solved
I have a select element defined as such:
<select name="country_id" id="country_id" required="required" ng-model="newAddressForm.country_id">
<option value="">Select Country</option...
Anstus asked 28/5, 2013 at 3:10
5
Solved
I've been working on this for hours trying to figure out why the supposedly simple autocomplete wasn't showing up.
It turns out that in my code, the input element is being set to autocompete="...
Tight asked 25/11, 2013 at 5:47
40
In Angular 2, how can I mask an input field (textbox) such that it accepts only numbers and not alphabetical characters?
I have the following HTML input:
<input
type="text"
*ngSwitchDefaul...
Concession asked 4/1, 2017 at 13:56
1 Next >
© 2022 - 2025 — McMap. All rights reserved.