Angular 2.0.1 How reactive data when inject route param in step 5


#1

i saw this post Angular 2 tutorial refresh on party-details broken

I cannot fix it in Angular 2.0.0
when refresh page is emtpy data and I want reactive data in paty-detail page

Sorry for my English syntax


#2

I can fix it, add Tracker.autorun and ngZone I see in old tutorial meteor

this.paramsSub = this.route.params
            .map(params => params['projectname'])
            .subscribe(projectname => {
                this.projectname = projectname;
                Tracker.autorun(() => {
                    this.ngZone.run(() => {
                        this.project = Projects.findOne({url: this.projectname});
                    })
                })            
            });```