Page 1 of 1

BETA Bootstrap/Angular JS feedback: When using a link within a navbar, the link isn't populating the URL.

Posted: Tue Mar 10, 2015 5:24 pm
by Crystal Taggart

BETA Bootstrap/Angular JS feedback: For some reason when using the link within a navbar, the link isn't populating the URL.

Steps to reproduce:

  1. Add a navbar control.

  2. Add a link into the navbar

  3. Set the URL (not working - link shows javascript:void(0))

  4. Tried adding the ng-click event to call a method (also not working) - the HTML generated looks like this http://screencast.com/t/NsvM1SR8Vik6

    Regular links outside the navbar work fine although it took a bit to figure out the URL scheme.


BETA Bootstrap/Angular JS feedback: When using a link within a navbar, the link isn't populating the URL.

Posted: Tue Mar 10, 2015 6:37 pm
by Crystal Taggart

Just one clarification, both the navbar and the navs aren't working.


BETA Bootstrap/Angular JS feedback: When using a link within a navbar, the link isn't populating the URL.

Posted: Tue Mar 10, 2015 9:02 pm
by Egor Kotov6832188

Hello Crystal,
just for clarification it wasn't working when you pressed on it ?


BETA Bootstrap/Angular JS feedback: When using a link within a navbar, the link isn't populating the URL.

Posted: Wed Mar 11, 2015 2:13 pm
by Crystal Taggart

That's correct.


BETA Bootstrap/Angular JS feedback: When using a link within a navbar, the link isn't populating the URL.

Posted: Sun Mar 15, 2015 1:26 pm
by Illya Stepanov

Hi Crystal --

Thank you for your feedback.
Yes, it's a bug we will report it.


BETA Bootstrap/Angular JS feedback: When using a link within a navbar, the link isn't populating the URL.

Posted: Mon Mar 16, 2015 4:25 pm
by Illya Stepanov

Crystal --

For now as long we're fixing this bug you can use this workaround:

  1. In Scope define function for example 'linkURL' and add code:
    precodevar $window = Apperyio.get("$window");
    $window.location.href = "http://google.com&quot/code/pre

  2. In your Link component in NavBar menu - define attribute 'ng-click' with function name as defined in scope e.g. "linkURL()".

    Note: this could be not work in Chrome with mobile-frame (you can test without it), but should work correctly in Safari.