Skip to content

Commit

Permalink
fix(view): add view container options (#343)
Browse files Browse the repository at this point in the history
- views need to be instantiated and they're singletons
  • Loading branch information
acburdine authored and davewasmer committed Jun 19, 2017
1 parent cb6ba67 commit 186d89e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/metal/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ export default class Container {
model: { singleton: false, instantiate: false },
parser: { singleton: true, instantiate: true },
serializer: { singleton: true, instantiate: true },
service: { singleton: true, instantiate: true }
service: { singleton: true, instantiate: true },
view: { singleton: true, instantiate: true }
};

/**
Expand Down

0 comments on commit 186d89e

Please sign in to comment.