The lib is built upon ES2015 and more right now, so we can use decorator to configure the NgStompProvider.
I would like to add something like this :
@StompConfig({
login : 'aLogin',
password : 'aPassword',
class : SockJS,
})
export default class MyComponentWithStompWS {}
The only problem with this implementation is I need an AngularModule to register the config, so an extra parameters should be provided.
In decorators written for an Angular-JSPM-Seed, we register the angular module as a static attribute of the class named $angularModule, so we can retrieve it during decorator evaluation.
Another solution should be found to improve the API and the integration with others decorators.
The lib is built upon ES2015 and more right now, so we can use decorator to configure the NgStompProvider.
I would like to add something like this :
The only problem with this implementation is I need an AngularModule to register the config, so an extra parameters should be provided. In decorators written for an Angular-JSPM-Seed, we register the angular module as a static attribute of the class named $angularModule, so we can retrieve it during decorator evaluation. Another solution should be found to improve the API and the integration with others decorators.