Views not allowing strongly typed properties
# help-with-umbraco
d
i have Umbraco 13.4.1 up and running via vscode, i have set ModelsBuilder to SourceCodeManuel and have models running in an unsafedirectory. Models are getting generated as expected. i run dotnet build, Ctrl f5 get site back up. i edit a template which is making use of the Model. Add @Model.title to template. Error displayed saying Template does not contain definition for property. Not sure what else i have to add/configure to allow @Model. to work ?
r
Have you tried
@Model.Title
? I believe it capitalises the first letter of properties, you can double-check the generated model to make sure. You will also need to reference the project you're placing the models into in your web project if you aren't already
d
your a star @Rachel D capitalise worked
r
Glad I could help!
k
Is there no intellisense for VSCode? I'd be lost without it... (only ever used VS for Umbraco Razor)
2 Views