• Resolved kuckovic

    (@kuckovic)


    Hi all,

    Is it possible, in any way, to add ng-href to my a-tags?
    I’m using AngularJS in my theme, and I need “ng-href” to be default instead of <a href>.

    I hope it can be done ??

    Best regards
    AK

    • This topic was modified 7 years, 6 months ago by kuckovic.
    • This topic was modified 7 years, 6 months ago by kuckovic.
    • This topic was modified 7 years, 6 months ago by kuckovic.
    • This topic was modified 7 years, 6 months ago by kuckovic.
    • This topic was modified 7 years, 6 months ago by kuckovic.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Riad Benguella

    (@youknowriad)

    Hi there!

    right now it’s not possible to add ng-href or any custom attribute to blocks, we’re exploring an extensibility API to allow third party developpers to modify exisiting compoenents. For example by adding ng-href to all links…

    But in the meantime, can I suggest an alternative for your for you angular theme, wrap your post in a directive and catch all a clicks inside this directive, prevent default and navigate using Angular APIs instead?

    Thread Starter kuckovic

    (@kuckovic)

    Hi Riad,

    Okay – it would be awesome if this gets implemented in the future.
    Meanwhile, I have already done, what you’ve suggested ??

    I’ll look forward to future updates ??

    Best regards
    AK

    • This reply was modified 7 years, 6 months ago by kuckovic.
    Thread Starter kuckovic

    (@kuckovic)

    Whoops!
    Double post …

    • This reply was modified 7 years, 6 months ago by kuckovic.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add “ng-href” on a-tags?’ is closed to new replies.