basical samples for AngularJS transplanted in TypeScript