allow an anchor element to be passed for initial component bootstrap

pull/7738/head
Andrew Worcester 8 years ago
parent ad63928bb5
commit 47e56e3da6

@ -213,7 +213,7 @@ export default function dom(
${options.dev && `if ( options.hydrate ) throw new Error( 'options.hydrate only works if the component was compiled with the \`hydratable: true\` option' );`}
this._fragment.create();
`}
this._fragment.${block.hasIntroMethod ? 'intro' : 'mount'}( options.target, null );
this._fragment.${block.hasIntroMethod ? 'intro' : 'mount'}( options.target, options.anchor || null );
}
${(generator.hasComponents || generator.hasComplexBindings || templateProperties.oncreate || generator.hasIntroTransitions) && deindent`

Loading…
Cancel
Save