Skip to content

Commit cf84768

Browse files
Update README and set Debug to false by default.
1 parent 31c4f66 commit cf84768

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

BlazorEmbedLibrary/EmbeddedContent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace BlazorEmbedLibrary
1010
public class EmbeddedContent : ComponentBase
1111
{
1212
[Inject] IJSRuntime jSRuntime { get; set; }
13-
[Parameter] protected bool Debug { get; set; } = true;
13+
[Parameter] protected bool Debug { get; set; } = false;
1414
[Parameter] protected Type BaseType { get; set; }
1515

1616
protected override async Task OnInitAsync()

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ Add a *Using* and an *addTagHelper* to the __ViewImports file
4040
@addTagHelper *, BlazorEmbedLibrary
4141
```
4242

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

4545
```
4646
<EmbeddedContent BaseType="@(typeof(Component1))" />
4747
```
4848

49+
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.
50+
4951
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.
5052

5153
## Examples

0 commit comments

Comments
 (0)