Skip to content

Commit a21c479

Browse files
fix(bindings): Make bindings: work on a state declaration (as well as a view declaration)
Closes #47
1 parent 5f03719 commit a21c479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/statebuilders/views.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {ViewService} from "ui-router-core";
1818
*/
1919
export function ng2ViewsBuilder(state: State) {
2020
let views: { [key: string]: Ng2ViewDeclaration } = {},
21-
viewsObject = state.views || {"$default": pick(state, "component")};
21+
viewsObject = state.views || {"$default": pick(state, ["component", "bindings"])};
2222

2323
forEach(viewsObject, function (config: Ng2ViewDeclaration, name: string) {
2424
name = name || "$default"; // Account for views: { "": { template... } }

0 commit comments

Comments
 (0)