We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73caae2 commit 6a2a3d9Copy full SHA for 6a2a3d9
1 file changed
templates/Angular2Spa/Startup.cs
@@ -18,7 +18,10 @@ public class Startup
18
// This method gets called by the runtime. Use this method to add services to the container.
19
public void ConfigureServices(IServiceCollection services)
20
{
21
- services.AddMvc();
+ services.AddMvc().AddJsonOptions(options =>
22
+ {
23
+ options.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
24
+ });
25
}
26
27
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
0 commit comments