Facebook recently started the Messenger Platform that allows bots to answer messages users write to a facebook page or business.

The really cool thing about it is that you can build small applications inside messenger without asking the user to install yet another app or any information. According to facebook…

In this article I will briefly describe how to create an AngularJS 1.5 Component in TypeScript and how to inject services into this component.

Components are a good preparation if you plan to migrate to Angular 2.

service: SampleService.ts

class IntegrationsService {  static $inject = ['$q'];
constructor(protected $q: ng.IQService) {}

I am running karma test runner to execute tests for angular.js. It worked fine most of the time until following error started to appear randomly:

Script error. (:0)

often in combination with:

TypeError: ‘null’ is not an object (evaluating ‘currentSpec.$injector’)
at app/bower_components/angular-mocks/angular-mocks.js:1966

After doing some research on the web I…

Aco Mitevski

Freelance Web Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store