Skip to content

Commit

Permalink
Update README and set Debug to false by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
SQL-MisterMagoo committed Mar 4, 2019
1 parent 31c4f66 commit cf84768
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BlazorEmbedLibrary/EmbeddedContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace BlazorEmbedLibrary
public class EmbeddedContent : ComponentBase
{
[Inject] IJSRuntime jSRuntime { get; set; }
[Parameter] protected bool Debug { get; set; } = true;
[Parameter] protected bool Debug { get; set; } = false;
[Parameter] protected Type BaseType { get; set; }

protected override async Task OnInitAsync()
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ Add a *Using* and an *addTagHelper* to the __ViewImports file
@addTagHelper *, BlazorEmbedLibrary
```

Then add the component to whichever page you want e.g. MainLayout
Then add the component to whichever page you want e.g. MainLayout, Index.cshtml - wherever makes sense for your project/needs.

```
<EmbeddedContent BaseType="@(typeof(Component1))" />
```

Note, by default the EmbeddedContent component has Debug turned off - if you enable it by setting Debug=true, it outputs the list of embedded resources.

This will read any CSS or Js files, which are embedded resources, from the Component1 library and add them to the `head` of the document.

## Examples
Expand Down

0 comments on commit cf84768

Please sign in to comment.