Skip to content

Commit

Permalink
reset example
Browse files Browse the repository at this point in the history
  • Loading branch information
StarpTech committed Dec 3, 2018
1 parent dad0531 commit 0430a2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ const prettyhtml = require('./../packages/prettyhtml')

// example with angular template
try {
const result = prettyhtml(`<p>dwedwedw</p>`)
const result = prettyhtml(
`<form #heroForm (ngSubmit)="onSubmit(heroForm)"><input type="text" [(onChange)]="dede" name="test" /><button [style.color]="isSpecial ? 'red' : 'green'"></button></form>`
)
console.log(result.contents)
} catch (error) {
console.error(error)
Expand Down

0 comments on commit 0430a2c

Please sign in to comment.