You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have had a closer look to the problem. The zone object seems available already, which is why you don't need to import it. You just need to make sure, that it Typescript knows the type of the zone variable. This can be done with
declarevar zone: Zone;
You can then use it as normal, e.g. in the component
onInit(){zone.fork({}).run(()=>{console.log('I am running inside a zone');});// other code ...}
See also my PR #107 which fixes the rx-autosuggest example.
I'm having a problem with ac-autosuggest.ts.
First off its got the same problem with rx which I know how to fix.
Second though is it tells me "zone" is unknown. I assume this means I need to import zone somehow.
Looking through the various components I can see there is an NgZone in Angular 2.
So I tried changing line 4 to read
However at runtime, I got into an infinite loop with zone.
I'm not sure where to go from here.
If you could give me a pointer, I'm happy to make the changes and submit a pull request.
The text was updated successfully, but these errors were encountered: