Opera directory at "/usr/lib" is missing
495
Open up a terminal (Ctrl+Alt+T)
Enter this command:
sudo apt-get install pepperflashplugin-nonfree
Restart Opera.
Related videos on Youtube
Author by
Sanju
Updated on September 18, 2022Comments
-
Sanju over 1 year
I'm creating an ionic refresher. I have a component which performs multiple get requests. Each of them is in its own method. What i'm trying to implement is, I want to execute
event.target.complete()
after all subscriptions are done. Below is what I tried to do:private _dataFromOne; private _dataFromTwo; ngOnInIt() { this.getAllData(); } /*This method will be called from HTML as well with $event*/ private getAllData(event = null) { if ($event) { // So if it was only one method, then this would work this.methodOne().add(() => { event.target.complete() // teardown logic. End when _subOne is unsubscribed }); // This is where I'm confused. How do I do it when subscription from both method is unsubscribed? // this.methodTwo(); } else { this.methodOne(); this.methodTwo(); } } private methodOne() { return this.doGetRequest.get().subscribe((data) => { this._dataFromOne = data; }); } private methodTwo() { return this.doSomeGetRequest.get().subscribe((data) => { this._dataFromTwo = data; }); }
Any help in pointing me in the right direction would be appreciated. Thank you.
-
Merri over 9 yearsThe Opera documentation is for older versions of Opera that are based on the Presto engine. Newer versions use the Blink engine. Webupd8 have a tutorial for enabling the Pepper Flash plugin in Opera, it's for version 26 but should also work for the version 27 you have installed. webupd8.org/2014/12/how-to-get-flash-and-h264-to-work-in.html
-
martin over 4 yearsFirst of all you shouldn't subscribe directly in methods
methodOne()
andmethodTwo()
. You can share the returned Observable for example. -
Sanju over 4 yearsI'm not subscribing to it. I'm just adding a teardown to be called after subscription is unsubscribed.
-
Peter David Carter over 4 yearsWhere are you getting the .add method on your methodOne function from?
-
Sanju over 4 years@PeterDavidCarter I'm returning Subscription (not Observable) from method. That contains .add() method. see: rxjs-dev.firebaseapp.com/api/index/class/…
-
-
It's Willem almost 9 yearsIs there an equivalent for 12.04??