How did you stop observable?



How did you stop observable?..

Answer / Mohd. Vikaar

In AngularJS, you can unsubscribe from an Observable by calling the `unsubscribe()` method on the subscription object. Here's an example:

```javascript
let subscription = myObservable.subscribe((value) => console.log(value));
// ... do something with the Observable
subscription.unsubscribe();
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is a controller in angularjs?

1 Answers  


What are the key components of angular 2?

1 Answers  


What is the purpose of a filter in angular?

1 Answers  


What is material design angular?

1 Answers  


How will you transfer data between two controllers?

1 Answers  


What is the latest angular?

0 Answers  


What is a provider in angular?

1 Answers  


Is angular 2 mobile oriented?

1 Answers  


What is ng stand for?

1 Answers  


How to perform animation in angular?

1 Answers  


What is angular services?

1 Answers  


What is ivy in angular?

1 Answers  


Categories