Skip to content

Instantly share code, notes, and snippets.

@yogain123
Last active March 12, 2019 15:29
Show Gist options
  • Save yogain123/b19cee2a4a95176a5f05774811a13c3a to your computer and use it in GitHub Desktop.
Save yogain123/b19cee2a4a95176a5f05774811a13c3a to your computer and use it in GitHub Desktop.
Angular4
@yogain123
Copy link
Author

We Unscubscribe to overcome memory Leak
unscubscribe in OnDestroy()

Screen Shot 1940-12-19 at 4 39 50 PM

@yogain123
Copy link
Author

yogain123 commented Mar 10, 2019

Async Pipe

You don't have to subscribe to observable
you don't have to unsubscribe to observable
you don't have to implement ngOnInit

Screen Shot 1940-12-19 at 4 43 41 PM

@yogain123
Copy link
Author

As Keyword

it is used to give alias

Screen Shot 1940-12-19 at 4 45 38 PM

can we rewritten as

Screen Shot 1940-12-19 at 4 46 01 PM

@yogain123
Copy link
Author

@yogain123
Copy link
Author

yogain123 commented Mar 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment