Closed marcosdefina closed 6 years ago
If you want to pass params without including them in the URL, use the params
property of a state definition:
var state = {
name: 'foo',
url: '/foo',
params: {
myParam: null
}
}
Now you can use $state.go('foo', { myParam: someObject })
.
Note that the parameter won't be retained after a full page reload (or bookmarks).
Sorry for the late reply, but thank you for taking the time to see it.
obj = url: '/{a}' ----metaTags: --------title: stateParams.b $stateProvider.state('newState',obj)
If I didn't put {b} in url, stateParams.b won't show up.