Comments (1)
Well, as the property needs to have a public setter you can just use an object initializer or set the property after creating the view model.
var vm = new MyViewModel
{
MyParameter = "foo"
}
from mvvmblazor.
Related Issues (20)
- Guidance on Two-Way Binding on a Model property HOT 6
- Cannot use Blazored ILocalStorageService inside ViewModel HOT 2
- Blazor Server - No Startup HOT 5
- MvvmDialogs HOT 1
- Scope management enhancement HOT 7
- MvvmComponentBase does not call AsyncServiceScope.DisposeAsync() HOT 1
- Allow custom EqualityComparer on ViewModelBase.Set<T>() function HOT 1
- Parameters with non-public accessors are not set HOT 9
- Switch to CommunityToolkit.Mvvm HOT 2
- Layouts? HOT 11
- Remove constructor for generated components HOT 2
- Razor page dispose not firing when inheriting from view model HOT 4
- Why is the lifetime of scoped view models tied to the component lifetime instead of the request lifetime? HOT 2
- How can an MvvmComponent implement IAsyncDisposable? HOT 4
- Index out of bound exception
- Feature request: "MvvmOwningComponentBase" which inherit from OwningComponentBase HOT 1
- Update Service Locator Pattern in MVVMComponentBase to Constructor Injection HOT 1
- Can the CodeGenerators be bundled with the nuget package? HOT 5
- Is there a way to InvokeAsync within the view model? HOT 9
- After upgrade to version 6.0.3 scoped dependency injection is not working properly HOT 3
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 mvvmblazor.