-
Notifications
You must be signed in to change notification settings - Fork 16
Using BlazoradeTeams in MainLayout #20
Comments
If I understand you correctly, I guess it's just a matter of how you build your application. For sure you can share a lot of functionality between a Teams app and a standard browser app. However, there is some wiring you have to take care of in a Teams App. And that wiring is taken care of for you by the So, if you build your website as a bunch of Razor components, you can reuse many, if not all, of those also in your Teams application. What I typically do is that I have a Page component that takes care of the routing. That page component just uses a View component and sets its parameters from the route or some other source. That View component then in turn builds up the UI using different components, that all have a specific role and responsibility. Now, if you would do that for your browser application too, then you could reuse the View components directly in your Teams application with minimal coding required. Or did I completely misunderstood what you are trying to achieve? |
@gcaumont this is exactly what I'm looking for as well. |
I went for the following implementation, rendering a Teams application without authentication and doing the MSAL login myself, as in a standalone application.
|
I would like to have a single application that works in both "Teams" and in a browser.
For example in browser mode, I need a menu but not in "Teams" mode.
I tried using and in MainLayout.razor to set up the layout. But it doesn't work as expected.
It's always the that's displayed.
Could you help?
Thank you
The text was updated successfully, but these errors were encountered: