Great video and explanation !!! Nice to see Angular 17 in action! The new standalone feature is quite good, but the control flow statements are really a sight for sore eyes 😂
Thank you!! :) i appreciate the love! haha i actually do like the control flow statements, i come from a c# background so for me they seem very familiar, i enjoy them over having just a random div wtih an ngIf of ngFor in it, i think it makes it way clearer to see whats going on but at the end of the day its personal preference
A question about the EF connection string. You store it in appsettings.json and use it when injecting the database context in program.cs. However, the SampleDatabaseContext OnConfiguring method still contains the hard wired connection string. If I remove the method (or comment out the UseSqlServer there), the API won't connect to the database because "The ConnectionString property has not been initialized". I can of course inject the configuration into the SampleDatabaseContext and use the setting in OnConfiguring but is this the correct way to do it?
On further investigation it seems that builder.Configuration.GetConnectionString("DefaultConnection") returns null and that this is why commenting out the OnConfiguring does not work. Any idea why it is null?
My bad: I had pasted the ConnectionStrings setting into the Logging section of the appsettings.json file, moved it one up and is working now. To err is human, to really screw up you need to be a programmer ;-)
you can, if you want, you just have to deploy your .net api then make sure to set the path in azure to the static angular files you deploy in your dist folder OR you can just use a Static Web App for the Angular and a App service for the API so you have options, the first can just be a bit tricky to deploy
My tutorials are actually doing great, channel is thriving 😂 and my tutorials are super clear and people love them! And I very clearly show all the code I use in my videos and explain them, remember u can pause the videos! TH-cam added that feature a while ago 👍🏽 If u want the repos pay up, if u are good at something never do them for free... the Joker said that 🤪 Happy New Year!
To get access to the Github repos to my projects become a member today for $3! th-cam.com/channels/GUKXx5HYoEIiZ5Me2QDvTw.htmljoin
Great video and explanation !!! Nice to see Angular 17 in action! The new standalone feature is quite good, but the control flow statements are really a sight for sore eyes 😂
Thank you!! :) i appreciate the love!
haha i actually do like the control flow statements, i come from a c# background so for me they seem very familiar, i enjoy them over having just a random div wtih an ngIf of ngFor in it, i think it makes it way clearer to see whats going on but at the end of the day its personal preference
A question about the EF connection string. You store it in appsettings.json and use it when injecting the database context in program.cs. However, the SampleDatabaseContext OnConfiguring method still contains the hard wired connection string. If I remove the method (or comment out the UseSqlServer there), the API won't connect to the database because "The ConnectionString property has not been initialized". I can of course inject the configuration into the SampleDatabaseContext and use the setting in OnConfiguring but is this the correct way to do it?
On further investigation it seems that builder.Configuration.GetConnectionString("DefaultConnection") returns null and that this is why commenting out the OnConfiguring does not work. Any idea why it is null?
My bad: I had pasted the ConnectionStrings setting into the Logging section of the appsettings.json file, moved it one up and is working now. To err is human, to really screw up you need to be a programmer ;-)
its okay im just happy it all worked :) haha
it happens to the best of us!
how can we build the .net release package with Angular integration
can we deploy under same azure app service both the project?
you can, if you want, you just have to deploy your .net api then make sure to set the path in azure to the static angular files you deploy in your dist folder
OR you can just use a Static Web App for the Angular and a App service for the API
so you have options, the first can just be a bit tricky to deploy
Gracias amigo, espero me sirva, llamismo me pongo a prácticar 😢
hechale ganas compa :)
sad that youre so desperate for money you waste our time with these tutorials that do not show the actual coad to use, hows that working for you?
My tutorials are actually doing great, channel is thriving 😂 and my tutorials are super clear and people love them!
And I very clearly show all the code I use in my videos and explain them, remember u can pause the videos! TH-cam added that feature a while ago 👍🏽
If u want the repos pay up, if u are good at something never do them for free... the Joker said that 🤪
Happy New Year!