We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81e960e commit a674d8dCopy full SHA for a674d8d
src/Blazor.AdminLte/ServiceCollectionExtensions.cs
@@ -1,12 +1,20 @@
1
-using Microsoft.Extensions.DependencyInjection;
+using BlazorState;
2
+using Microsoft.Extensions.DependencyInjection;
3
+using System.Reflection;
4
5
namespace Blazor.AdminLte
6
{
7
public static class ServiceCollectionExtensions
8
9
public static IServiceCollection AddAdminLte(this IServiceCollection services)
10
- return services.AddScoped<NavBarLeftInjectableMenu>();
11
+ return services.AddScoped<NavBarLeftInjectableMenu>().AddBlazorState((aOptions) =>
12
+ aOptions.Assemblies = new Assembly[]
13
+ {
14
+ typeof(BaseClasses).GetTypeInfo().Assembly,
15
+ Assembly.GetExecutingAssembly()
16
+ }
17
+ );
18
}
19
20
0 commit comments