Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Definition of ui-sref in Angular.js?

I've been having some trouble getting a decent explanation of what ui-sref is actually doing in angular.

In HTML href is hyperlink reference, so does sref mean script reference?

like image 909
Ben Casalino Avatar asked Oct 07 '15 21:10

Ben Casalino


1 Answers

ui-sref stands for UI-Router state reference. It's a way to change states/state params (as defined in using the $stateProvider in a config block using the ui.router module for AngularJS. You can read the ui-sref documentation here.

like image 87
Caleb Williams Avatar answered Oct 11 '22 06:10

Caleb Williams