Use directives for adding views to allow custom view config parameters