Skip to content

Commit

Permalink
in-code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
isc30 committed May 6, 2020
1 parent 3be060c commit 24c17a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/LazyComponents/LazyComponent/LazyNameAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@

namespace BlazorLazyLoading
{
/// <summary>
/// Specifies a LazyName for a Component that can be later used by &lt;Lazy&gt; Component.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class LazyNameAttribute : Attribute
{
/// <summary>
/// LazyName
/// </summary>
public string ComponentName { get; }

/// <inheritdoc/>
public LazyNameAttribute(string componentName)
{
ComponentName = componentName;
Expand Down
6 changes: 4 additions & 2 deletions src/LazyComponents/LazyRoute/LazyRouter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@
namespace BlazorLazyLoading
{
/// <summary>
/// A component that supplies route data corresponding to the current navigation state.
/// Provides SPA navigation for Pages and Routes in Lazy Modules. It is a direct replacement of &lt;Router&gt;
/// </summary>
public class LazyRouter : IComponent, IHandleAfterRender, IDisposable
{

[Inject] private IManifestRepository _manifestRepository { get; set; } = null!;

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

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

private bool isFirstRender = true;
Expand Down

0 comments on commit 24c17a0

Please sign in to comment.