directive Questions

2

Solved

When I try to compile an Objective C++ file (.mm) that is linked to a file that uses the new @import directive, I get some errors. Currently, my only solution is to replace the @import with the old...
Comintern asked 20/12, 2013 at 16:47

3

Solved

I am using Sphinx to generate HTML documentation for a Python program. I would like to use the generic admonition directive with a specific title and have it marked up in a way I can define, for ex...
Airframe asked 6/2, 2012 at 15:52

3

Solved

I am new to Angular. I am using Angular 4. Where there is a requirement to send the base64 Image as one of the model member to the web api. Is there a Angular component or directive for the that wo...
Ligate asked 11/1, 2018 at 21:51

1

Solved

I know that the .ascii directive doesn't put a null character at the end of the string, as the .asciz directive is used for that purpose. However, I don't know whether the .string directive puts a ...
Pneumothorax asked 26/4, 2016 at 2:0

3

I want to implement something similar with angular-permisssion. And with requirement to control the element's existance, I need to use angular structural directive. At the beginning, i think such ...
Pasargadae asked 22/1, 2017 at 10:15

2

Solved

When I use custom directive to change component's value, there is not effect: Vue.directive('maxchars', { bind(el, binding, vnode) { let maxChars = binding.value; let handler = function(...
Adversary asked 1/4, 2018 at 13:24

10

Solved

On my site: http://bammeh.com/tempemail/ I keep getting erros all over my site when using PHP files that arent CHMOD to 644 or 755. If I chmod recursively this directory 755 I get: [an error occur...
Gilleod asked 30/3, 2012 at 23:37

1

Solved

My template: <div myDirective myOtherDirective>Hello World</div> myDirective: @Directive({ selector: '[myDirective]', }) export class MyDirective { private readonly otherDirective...
Lumpfish asked 29/7, 2019 at 5:35

4

I am curious - What is the difference between .equ and .word directives in ARM assembly, when defining constants?
Garton asked 7/2, 2014 at 9:41

4

Solved

I want to change (force) input field values while typing using a attribute Directive. With it I would like to create directives like uppercase, lowercase, maxlength, filterchar, etc. to be used o...
Chindwin asked 19/3, 2016 at 19:46

3

I am trying to build a datetime picker directive like the following. <input [(ngModel)]="date1" datetime-picker date-only /> and date1 is assigned as a Date, e.g., new Date() When I display...
Lefevre asked 23/5, 2016 at 2:40

10

Solved

What I am trying to implement is basically a "on ng repeat finished rendering" handler. I am able to detect when it is done but I can't figure out how to trigger a function from it. Check the fidd...
Iden asked 4/3, 2013 at 17:51

1

I've been able to upgrade an angularjs element directive to be used in angular 4. Here's a sample code: [myScores.js] angular.module('app.components.directives.myScores', []) .directive('myScores...
Rapturous asked 30/8, 2017 at 19:53

1

I have a list component where I want to define custom columns inside. These columns get transcluded into the row of the components template. Unfortunately I can't use ngIf in this context. Here is...
Headcheese asked 3/4, 2018 at 1:48

3

Solved

From here, it is said that: For #include "filename" the preprocessor searches in the same directory as the file containing the directive. This method is normally used to include programmer-de...
Proposal asked 16/5, 2016 at 15:36

3

Solved

I am having an issue with an Angular2 directive that should do the following: Detect if the user enters '.' character. If the next char is also '.', remove the duplicate '.' and move the cursor p...
Chanellechaney asked 2/12, 2016 at 12:5

1

Solved

I'm trying to create a custom directive to replace the inner text of my custom directive. I can't seem to access the inner text content to apply some logic. Here's the code: import { Directive, E...
Columnist asked 20/3, 2018 at 18:4

1

I'm trying to learn mips assembly at the moment. To that end, I wrote a very simple c program... int main(){} ...and compiled it on a mips machine with the -S option to gcc to generate assembly ...
Indigestion asked 8/4, 2009 at 15:42

1

Solved

I define the custom directive "focus" in my component: <script> export default { name: 'demo', data () { return { show: true } }, methods: { showInput () { this.show = false } },...
Diminished asked 7/3, 2018 at 3:3

1

Solved

ng.probe($0).componentInstance -- will give the reference to the instance. Is there any way to access the directive instance from the console?
Dough asked 8/2, 2018 at 12:42

6

Solved

I regularly use object-like preprocessor macros as boolean flags in C code to turn on and off sections of code. For example #define DEBUG_PRINT 1 And then use it like #if(DEBUG_PRINT == 1) pr...
Mackenziemackerel asked 18/6, 2013 at 4:50

3

Solved

How to target a specific element inside a component in Angular Directive. I have a component with selector "highlighter". This component has content project using ng-content. There is a directive ...
Selfidentity asked 14/1, 2018 at 22:58

2

I have two DIVs - one, that is always visible, and another one, that gets displayed after I click a button (it is toggable): <div> <div> <small>ADDRESS</small> <p [ap...
Felizio asked 15/1, 2018 at 16:10

1

I am creating a small application, which display a list of People with Name, Surname and Age fields using ngFor. The application has search field, where one can enter a query, and then the list wil...
Darden asked 14/1, 2018 at 1:21

3

I'm trying to find a way to have a html input field displayed in percent (e.g. 97,52 %) upon initial page load (data fetched via a angular service to a backend, i.e. observable/subscribe), but also...
Muddy asked 8/11, 2017 at 17:32

© 2022 - 2024 — McMap. All rights reserved.