I don't follow..
Tried: ng-href="#/{{lang}}/catalog"
Doesn't work, it renders: #//catalog
On Tuesday, May 27, 2014 6:20:10 PM UTC-3, [email protected]
wrote:
>
> Hi,
>
> Use ng-href: https://docs.angularjs.org/api/ng/directive/ngHref
>
> Regards,
> Miguel
>
>
> Terça-feira, 27 de Maio de 2014 22:14:03 UTC+1, Joberto Diniz escreveu:
>>
>> I set up the following route configuration:
>> $routeProvider.when('/:lang/tv', { templateUrl:
>> '/mainModule/partials/tv.html', controller: "TvController" });
>> $routeProvider.when('/:lang/catalog', { templateUrl:
>> '/mainModule/partials/catalog.html' });
>>
>> However, how can I use this in the href of an anchor tag?
>>
>> <a href="#/tv" class="topbar-link text-center" id="topbar-catalog"></a>
>>
>> What to put in the href to point to the :lang/tv route?
>>
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.