Comments (3)
Revoke the suggestion for adding @using Packt.Shared to the top of the MainLayout.razor file since it is in the _Imports.razor file. The namespace should still be added to the NavMenu.razor file.
from apps-services-net7.
By default, the _Imports.razor
file created by the project template contains that following statement:
@using Northwind.BlazorWasm.Client.Components
This will import all components defined in the Components
folder. None of the components need to be explicitly defined within that namespace if they are in the Components
folder. For example, Alert.razor
, DialogBox.razor
, NavMenu.razor
and ProgressBar.razor
are all in that folder, none explicitly define their namespace, but all can be used in other components.
from apps-services-net7.
Oh yeah, I see what the problem I was having is. I put the NavMenu.razor file in the Pages folder instead of the Components folder. Upon moving it and removing all the namespace stuff, it works.
Sorry for the mixup.
from apps-services-net7.
Related Issues (20)
- Chapter 17, Page 621, Bullet 6 HOT 2
- Chapter 17, Page 623, Bullet 5, MainLayout.cshtml HOT 1
- Chapter 17, Page 621, Bullet 6 HOT 3
- Chapter 18, Page 657, Bullet 5 HOT 1
- Idea for next version chapter HOT 2
- adding northwind script for postgresql in chapter 2 HOT 3
- Missing using statement HOT 1
- Incorrect HTML element closing HOT 1
- link crossorigin property must be camelCased HOT 5
- Do you planning to update book (second edition) about .Net 8? HOT 2
- Chapter 2, Page 91, Table-per-concrete-type (TPC) mapping strategy HOT 3
- String Interpolation and String Format in same line. HOT 1
- Image Sharp - Chapter 14 HOT 1
- StrawberryShake - access to obj\\berry is denied - fix included HOT 1
- English language in France ranked at 0.8 HOT 1
- Comparing HTML Helpers and Tag Helpers HOT 1
- ClickMeButton_Click missing in instruction 18 HOT 1
- Blazor Client Not Showing Products Data HOT 5
- MAUI Exception: A cycle occured while laying out GUI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apps-services-net7.