Angular
- 15 ответов
- 0 вопросов
10
Вклад в тег
{ path: '',
loadChildren: './view/view.module#ViewModule'
//component: ViewComponent
}
app.use('/*', express.static(__dirname+ '/'));
.factory('faqSocket', function($websocket,$rootScope) {
var factory = {}
var dataStream = $websocket('wss://api.myserver.com/faq/');
dataStream.onMessage(function(message) {
$rootScope.$apply(function () {
factory.answer = message['data'];
});
factory.dataStream = dataStream ;
return factory;
})
<li *ngFor="let u of users">{{u?.name}}</li>