Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented rendering parameter injection into the GlassViewModel #18

Merged
merged 2 commits into from
Mar 18, 2016

Conversation

smithc
Copy link
Contributor

@smithc smithc commented Mar 2, 2016

Resolves issue #9

Rendering parameters templates may now be injected and used in a strongly-typed manner with GlassViewModels:

public class MyViewModel : GlassViewModel<IGlassBase, IRenderingTemplate> {

    // The constructor params are optional... only if you need to use them
    public MyViewModel(IGlassBase datasource, IRenderingTempalate renderingParams) 
    {
        ...
    }

}

smithc added a commit that referenced this pull request Mar 18, 2016
Implemented rendering parameter injection into the GlassViewModel
@smithc smithc merged commit c60beb1 into dev Mar 18, 2016
@smithc smithc deleted the issue-9 branch April 6, 2016 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant