You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Import the `Syncfusion.Blazor` and `Syncfusion.Blazor.Notifications` namespaces:
95
95
96
-
```razor
96
+
{% tabs %}
97
+
{% highlight C# tabtitle="~/_Imports.razor" %}
98
+
97
99
@using Syncfusion.Blazor
98
100
@using Syncfusion.Blazor.Notifications
99
-
```
101
+
102
+
{% endhighlight %}
103
+
{% endtabs %}
100
104
101
105
Register the Syncfusion<supstyle="font-size:70%">®</sup> Blazor service in the **~/Program.cs** file of the Blazor Web App.
102
106
103
107
If the **Interactive Render Mode** is set to `WebAssembly` or `Auto`, register the Syncfusion<supstyle="font-size:70%">®</sup> Blazor service in both Program.cs files (Server and Client).
var builder = WebAssemblyHostBuilder.CreateDefault(args);
128
132
builder.Services.AddSyncfusionBlazor();
129
133
130
134
await builder.Build().RunAsync();
131
-
```
135
+
136
+
{% endhighlight %}
137
+
{% endtabs %}
132
138
133
139
If the **Interactive Render Mode** is set to `Server`, the project contains a single **~/Program.cs** file. In this case, register the Syncfusion<supstyle="font-size:70%">®</sup> Blazor service only in that file.
Use <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to launch the application. The Syncfusion<supstyle="font-size:70%">®</sup> Blazor Toast component renders in the default web browser.
Launch the application with <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS). The Syncfusion<supstyle="font-size:70%">®</sup> Blazor Toast component renders in the default web browser.
0 commit comments