We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3957e78 + 5d73322 commit 9c18b5bCopy full SHA for 9c18b5b
src/stateProvider.js
@@ -30,6 +30,8 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactory) {
30
// Derive parent state from a hierarchical name only if 'parent' is not explicitly defined.
31
var parent = root;
32
if (!isDefined(state.parent)) {
33
+ // regex matches any valid composite state name
34
+ // would match "contact.list" but not "contacts"
35
var compositeName = /^(.+)\.[^.]+$/.exec(name);
36
if (compositeName != null) {
37
parent = findState(compositeName[1]);
0 commit comments