Skip to main content

Posts

Showing posts from February, 2018

Deployd Contributors Code Jam for 1 hr. Google Hangout.

Deployd Contributors Code Jam for 1 hr. Google Hangout. http://deployd101.blogspot.com/2018/02/deployd-contributors-online-code-jam.html This effort will repeat weekly or as regular as possible. What we do: Fix issues and add new features quickly by collaborating . All contributors are welcome to join a google hangout . (We like to keep it invite only . So if you are interested send me your gmail id via gitter  https://gitter.im/deployd/deployd - private message : @moorthi07. Thanks. -PV

Calling Observable by subscribe .Return data in a subscribe call.

 Calling Observable method using  subscribe  and return data in a subscribe 'd call. Calling method: onClick(fileName){ this ._service. getFiles (fileName). subscribe (filestring  =>  { console.log('filestring',filestring.fileContent); }, (err) =>  { console.log( 'Error to get file' ,err); }); } Called method:  getFiles ( fileName ): Observable <any> { return this ._http .get( this .baseUrl + '/' + fileName , this .options()) . map ((res: Response) => res.json() ) }