added global configuration api for angular and used it issue #112