AngularJs Factory and Services. References: https://blog.thoughtram.io/angular/2015/07/07/service-vs-factory-once-and-for-all.html The difference between services and factories we can define a service like this: app . service ( 'MyService' , function () { this . sayHello = function () { console . log ( 'hello' ); }; }); .service() is a method on our module that takes a name and a function that defines the service. app . factory ( 'MyService' , function () { return { sayHello : function () { console . log ( 'hello' ); } } }); .factory() is a method on our module and it also takes a name and a function, that defines the factory. a service is a constructor function where as a factory is Not .T here’s ' this ' code that calls Object.create() with the service constructor function, when it gets instantiated. However, a factory function is really just a function that gets called, ...
https://micro-frontends.org/ It extends the concepts of microservices to the frontend world. https://www.atlassian.com/agile/project-management Agile project management is an iterative approach to managing software development projects that focuses on continuous releases and incorporating customer feedback with every iteration. It’s flexible, fast, and aims for continuous improvements in quality, using tools like Scrum and eXtreme Programming . https://stackify.com/agile-methodology/ Agile Methodology is a people-focused, results-focused approach to software development that respects our rapidly changing world. It’s centered around adaptive planning, self-organization, and short delivery times. It’s flexible, fast, and aims for continuous improvements in quality, using tools like Scrum and eXtreme Programming . https://www.atlassian.com/agile Agile is an iterative approach to project management and software development that helps team...
Ref: https://code-maze.com/aspnetcore-webapi-best-practices/ In the Startup class, there are two methods: the ConfigureServices method for registering the services and the Configure method for adding the middleware components to the application’s pipeline. public static class ServiceExtensions { public static void ConfigureCors(this IServiceCollection services) { services.AddCors(options => { options.AddPolicy("CorsPolicy", builder => builder.AllowAnyOrigin() .AllowAnyMethod() .AllowAnyHeader() ...
Comments
Post a Comment