Implementing an Angular Hybrid App Part 4

The last post of this series is about the implementation of the bootstrap module in an Angular Hybrid application, that is first of all create the Angular.io main module which take care about launching the related Angularjs main module and as second step configuring UI Router routes for a new Angular.io module which will coesists … Continue reading Implementing an Angular Hybrid App Part 4

Implementing an Angular Hybrid App Part 2

The upgrading of an Angularjs SPA into an hybrid one (Angularjs + Angular.io) is composed by one step that is hardest than the others and this step is the refactoring of js files in typescript modules. What we've seen in the previous post is prepare the Angularjs files and remove incompatibilities like $scope and implicit … Continue reading Implementing an Angular Hybrid App Part 2

Lazy loading of modules in Angular 2

In the last post I shortly mentioned the ability of Angular 2 router to load lazily the application modules. This topic deserves more explanations, so let's go into details about this feature. The start point is an Angular 2 applications with a couple of indipendent modules; in orther to have better performances we want to … Continue reading Lazy loading of modules in Angular 2

Feature modules in Angular 2

Angular 2 give us the chance to organize our application in modules. Briefly, a module is a library where there may be components, directives and pipes and define a block of functionalities; Angular 2 libraries itself are modules, like FormsModule, HttpModule. One cool behaviour of the modules is the ability to be loaded eagerly or lazyly through … Continue reading Feature modules in Angular 2