AngularJS basic concepts and getting started


Today I will be talking about AngularJS, what it is and what is it good for. I will cover the basics for create a simple web application with AngularJS and in later posts we will grow together in order to build better and better applications. Before we start building anything, we should go over some basic concepts. What is Angular? AngularJS is an open source web application framework maintained by Google engineers and by the community. It allows the developer to build and maintain S.P.A. (Single Page Applications) easily. It provides the MVC (Model-View-Controller) architecture, thus allowing the application to be...
תגיות: , , ,
אין תגובות

DependencyInjection the ASP.NET Core 1.0 way


In the last post about DependencyInjection I demonstrated how to get from NuGet the unity framework and how to use it in our project. In ASP.NET Core 1.0 we have support for DependencyInjection already build in. The build-in mechanism is abstracted via the IServiceProvider interface and is available throughout all component of the ASP.NET framework, making it easy for us to resolve everything everywhere. As always, we have several methods of registering types in the service provider. Instance – The same instance is resolved each time it is called.In this method you have to create the instance once yourself. Transient - The...

Expose and Consume a Web API service


When we say we want to build a Web API we have in our mind to build a service that will expose the data in a clean way that every device will be able to address in order to use the data.In this post I will do just that. I have built a service that retrieves some products and together in this post we will build a client that will use this data. I will build the client using Angular framework. Let`s get started. Open a new empty web project with no authentication and no need for azure service at the...
אין תגובות

Dependency Injection in ASP.NET Web API


This will be a really short post as it is really easy to use the unity framework in an ASP.NET Web API application. The application I will build is an ASP.NET 4.5 Web API application which brings products to the controller using Dependency Injection.  Short one on Dependency Injection Dependency Injection is a design pattern that implement IoC (Inversion of Control) for resolving dependencies for your class. Let us says that your controller is using some repository in order to fetch products from the database. You should not create the repository using the new keyboard as this will result in coupling...
תגיות: , , , ,
אין תגובות