ViewChilds in Angular2

In some cases we enable the communication between a parent and a child component by using parameters passed to the child; or the parent component can waiting an event that will be emitted from the child. But in other cases the parent need to access to methods of the child component, so we need to... Continue Reading →

Master-detail component in Angular 2

One of the new features of Angular 2 is the communication between components and how they can share informations and events. It’s very frequent that you have to implement a master/detail view, where you have a list of elements and we need to show the detail when the user click on a row. Let’s go... Continue Reading →

Typescript checking with TSLint

TSLint is a linter for Typescript, then a program that analyse our code to find potential errors and make the code more readable. The very nice feature is that TSLint has a separate json file, named tslint.json, to configure the analisys process and allow us to setup the rules; we need to put this file... Continue Reading →

Bootstrapping an Angular 2 application

In an Angular 2 application we have different options to load application and modules, and one of these is SystemJS. This is an open source project that give us the ability to load bunch of modules and define for each one the corresponding default main module. Therefore you can use this library to define a default... Continue Reading →

Add Bower in an ASP.NET 4.5 application

Bower is packager manager that allow you to manage the client packages of your application and it can be easily integrated with in a deploy workflow with a task runner like Gulp. In this example, the sample application is an ASP.NET application with some NuGet packages installed and using Gulp to automate the deploy workflow.... Continue Reading →

Angular implicit annotation with Gulp

As you know, AngularJS provide the management of the module dependencies through the dependency injection. In order to be able to manage these dependencies, Angular allows specific annotations that the developers can use to define their modules. Dependency Annotation For example, in an Angular application written with Typescript, the dependencies can be inject in the... Continue Reading →

Compile Typescript with Gulp

Gulp is a build tools that can be used, among other things, as a Typescript compiler and sourcemaps generator. As you know, Typescript is a superset of Javascript which offer you static typing, classes, interfaces;  Sourcemaps are additional files that allow you to debug, from the browser debugger, source files (typescript files) instead of Javascript... Continue Reading →

Create a website or blog at WordPress.com

Up ↑