Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 493 Bytes

view-and-compilation-spies.md

File metadata and controls

13 lines (10 loc) · 493 Bytes

View and Compilation Spies

If you've installed the aurelia-testing plugin, you have access to two special templating behaviors:

{% code title="hello.html" %}

<template>
  <p view-spy compile-spy>Hello!</p>
</template>

{% endcode %}

view-spy drops Aurelia's copy of the View object into the console while compile-spy emits the compiler's TargetInstruction. This is especially useful for debugging any new View Resources you've created using the View Resource Pipeline.