Skip to main content

Posts

Showing posts from December, 2019

Async-await method - Angular

async   asyncAwait () {    const   c1  =  await   this . c1 ();    const   c2  =  await   this . c2 ();    const   c3  =  await   this . c3 (); } c1 () {    console . log ( 'c1 called' );    return ; } c2 () {    console . log ( 'c2 called' );    return ; } c3 () {    console . log ( 'c3 called' );    return ; } } Output: