Skip to content

Added resolving a component type. #2382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 10, 2018
Merged

Added resolving a component type. #2382

merged 2 commits into from
Sep 10, 2018

Conversation

dkulyk
Copy link
Contributor

@dkulyk dkulyk commented Sep 9, 2018

Added support for resolving vm in the next((vm)=>{}) call.

@Component<Test>({
  beforeRouteEnter(to, from, next) {
    next((vm) => {
      vm.testBool = true;  //TypeScript resolved this field. 
    });
  },
})
export default class Test extends Vue {
  public testBool: boolean = false;
}

image

@posva posva merged commit 9196bb0 into vuejs:dev Sep 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants