Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Support @Inject, @model, @using declaration in viewstart #881

@pranavkm

Description

@pranavkm

Related discussion: #825

The plan is to have any directives declared in _ViewStart affect pages in the hierarchy. For instance @using MyNamespace declared in the root _ViewStart wouid cause a using MyNamespace; to be generated in all views in the application.

The merge strategy happens on a per-directive basis - for instance for @Inject are merged by name@inject FooType Html in _ViewStart and @inject BarType Html in the page would result in the latter being chosen.

The token TModel would represent the model of the current page. When adding a directive to a page, the token would be replaced by the value specified by @model.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions