Please enable JavaScript.
Coggle requires JavaScript to display documents.
UI-Router (structure (state, url, controller, controllerAs, templateUrl),…
UI-Router
structure
state
url
controller
controllerAs
templateUrl
use
ui-sref
instead of href
can dont need url but better off url
resolver
load all in moment
data
pass parameter to controller
:id
{id}
params:{}
use $stateparams
important
controllerAs same to name variable template
rune all function when template was called
$state
method
go()
reload()
only reload current state dont reload entire application
get()
properties
current
param
Evens
$stateChangError
$stateChangStart
$stateChangSuccess
$stateNotFound