Skip to content

Instantly share code, notes, and snippets.

@fergusg
Last active November 29, 2015 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fergusg/1c8070e1d837c9070fff to your computer and use it in GitHub Desktop.
Save fergusg/1c8070e1d837c9070fff to your computer and use it in GitHub Desktop.
Example usage of veto
@Component({
selector: 'home'
})
@View({
template: `
<h1>Sandbox</h1>
<a [veto-router-link]="['/Heroes']" [veto-if]="true">Heroes (vetoed)</a>
<a [veto-router-link]="['/Heroes']" [veto-if]="false">Heroes</a>
`,
directives: [Veto]
})
class SandBoxComponent {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment