Welcome!

From the Trenches of the Enterprise Software

Yakov Fain

Subscribe to Yakov Fain: eMailAlertsEmail Alerts
Get Yakov Fain via: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Top Stories by Yakov Fain

The current version of Angular is Release Candidate 1. This version changed the way how the framework is distributed – it comes as a set of scoped npm packages now. Any imports of the Angular classes will be done from @angular instead of angular2, for example: import {bootstrap} from '@angular/platform-browser-dynamic'; import {Component} from '@angular/core'; The content of package.json, index.html, and the configuration of the SystemJS loader has to be changed accordingly. This post is an extract of our book Angular 2 Development with Typescript, and it’ll show you how to get started with a new Angular 2 RC.1 project. You can find the source code of the initial angular-seed project at https://github.com/Farata/angular2typescript/tree/master/chapter2/angular-seed. To start a new project managed by npm, create a new directory (e.g., angular-seed) and open it in the co... (more)

Angular 2: Exposing a Child Component’s API | @CloudExpo #Cloud

In Angular 2 a parent component can pass the data to its child via binding to the child’s input parameter marked with the annotation @Input(). I’ll blog about it later, but you can see how it can be done in my blog on implementing the Mediator design pattern. In this blog I’ll show you another scenario when the parent component simply needs to use the API exposed by the child. You’ll see how a parent component can use the child’s API from both the template and the TypeScript code. Let’s create a simple application where a child component has the method greet() that will be invo... (more)

Angular 2 Overview By @YFain | @ThingsExpo #DevOps #IoT #Microservices

This article was excerpted from the book “Angular Development With TypeScript” (see http://bit.ly/1QYeqL0). The Angular 2 framework is a re-write of popular framework AngularJS. In short, the newer version has the following advantages over AngularJS. The code is simpler to write and read It performs better  than AngularJS It’s easier to learn The application architecture is simplified as it’s component-based This article contains a high-level overview of Angular highlighting improvements comparing to AngularJS. For a more detailed architecture overview of Angular visit product do... (more)

Implementing the Mediator Design Pattern in Angular 2 By @YFain | @CloudExpo #Cloud

In any component-based framework you’ll need to implement component communications. The main principle is that components should be loosely coupled hence reusable hence testable. The mediator design pattern allows you to arrange component communications via “the man in the middle” so a component A never communicates with the component B directly. If a component needs data, someone will provide the data via bindings to the component’s input properties. Who’s this someone?Ain’t no business of the component. If a component needs to provide some data to the external world, it’ll emit... (more)

JavaScript Ecosystem | @ThingsExpo #IoT #JavaScript #TypeScript #Angular2

Lots of things are happening there. As of today it’s the liveliest software ecosystem. The last time I’ve seen such an interesting gathering was 15 years ago in Java. The Past Fifteen years ago Java developers were looking down on the JavaScript folks. It was assumed that JavaScript was only good for highlighting menus and making an impression that the Web site is current by displaying a running clock on the page. Mobile phones still had buttons with one digits and three letters. There were no App stores. Java was promising “Write once run everywhere”, but now we can see that Ja... (more)