question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to use custom directive *new*

See original GitHub issue

I’m submitting a … (check one with “x”)

[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior When using custom directives within a ngx-smart-modal it has no effect on the element it is being applied to

Expected behavior Directive should function as normal

Reproduction of the problem

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • Smart Modal version: 0.8.x @next

  • Angular version: 2.0.x 7

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
astr0sl0thcommented, Nov 20, 2018

@maximelafarie Thanks for your explanation and work on ngx-smart-modal. Much appreciated.

1reaction
maximelafariecommented, Nov 20, 2018

Yes, you can override any modal style property by providing a class that overrides it in the customClass option. No problem! 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom directive is not recognized in Angular 2 - Stack Overflow
I created a custom directive and added it in the declaration of my app.module. But when I use it in my component, it...
Read more >
Creating a Custom Directive • Angular - codecraft.tv
We create directives by annotating a class with the @Directive decorator. Let's create a class called CardHoverDirective and use the @Directive dectorator to ......
Read more >
Unable to use custom directives · Issue #75 - GitHub
Just missed it during copying. I have the directive tested on another input which is not in the modal. The directive shouldn't be...
Read more >
Developer Guide: Directives - AngularJS: API
To register a directive, you use the module.directive API. module.directive takes the normalized directive name followed by a factory function. This ...
Read more >
Custom directives: Unable to put focus on element
You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found