Skip to content

Commit 24c17a0

Browse files
committed
in-code comments
1 parent 3be060c commit 24c17a0

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/LazyComponents/LazyComponent/LazyNameAttribute.cs

+7
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@
22

33
namespace BlazorLazyLoading
44
{
5+
/// <summary>
6+
/// Specifies a LazyName for a Component that can be later used by &lt;Lazy&gt; Component.
7+
/// </summary>
58
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
69
public class LazyNameAttribute : Attribute
710
{
11+
/// <summary>
12+
/// LazyName
13+
/// </summary>
814
public string ComponentName { get; }
915

16+
/// <inheritdoc/>
1017
public LazyNameAttribute(string componentName)
1118
{
1219
ComponentName = componentName;

src/LazyComponents/LazyRoute/LazyRouter.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,17 @@
1919
namespace BlazorLazyLoading
2020
{
2121
/// <summary>
22-
/// A component that supplies route data corresponding to the current navigation state.
22+
/// Provides SPA navigation for Pages and Routes in Lazy Modules. It is a direct replacement of &lt;Router&gt;
2323
/// </summary>
2424
public class LazyRouter : IComponent, IHandleAfterRender, IDisposable
2525
{
26-
2726
[Inject] private IManifestRepository _manifestRepository { get; set; } = null!;
2827

2928
[Inject] private IAssemblyLoader _assemblyLoader { get; set; } = null!;
3029

30+
/// <summary>
31+
/// Specifies a custom 'Loading' screen.
32+
/// </summary>
3133
[Parameter] public RenderFragment<string?> Loading { get; set; } = null!;
3234

3335
private bool isFirstRender = true;

0 commit comments

Comments
 (0)