https via ui router

22 views
Skip to first unread message

chris hendrix

unread,
Oct 9, 2015, 5:21:49 PM10/9/15
to AngularJS
i'm using ui router and trying to make a state force into https... how do i do that?

Sander Elias

unread,
Oct 9, 2015, 11:37:06 PM10/9/15
to AngularJS
Hi Chris,

Most effectively? on your server. Otherwise, window.location will do the trick. Anyway, switching will cause a reload anyway.

Regards
Sander

chris hendrix

unread,
Oct 9, 2015, 11:46:58 PM10/9/15
to ang...@googlegroups.com
so it basically renders ui-sref useless?

--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/cZm2uZtGpW0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Sander Elias

unread,
Oct 10, 2015, 1:23:41 AM10/10/15
to AngularJS
Hi Chris,

For switching between protocols? Yes indeed.

Regards
Sander

Chris Hendrix

unread,
Oct 10, 2015, 7:40:41 AM10/10/15
to ang...@googlegroups.com
So there is no way to force buttons in the router js and keep the benefits of having ui-sref and ui-sref-active?

Sent from my phone 
--
Reply all
Reply to author
Forward
0 new messages