summaryrefslogtreecommitdiff
path: root/tests/examplefiles/example.ng2
diff options
context:
space:
mode:
authorfleischwolf <wolf.mayr@yahoo.de>2016-01-02 19:50:38 +0100
committerfleischwolf <wolf.mayr@yahoo.de>2016-01-02 19:50:38 +0100
commit06e87d7b2753ed6bbccb77197203340bcfcbe448 (patch)
tree07242584c64889ebf0b25c011dd52e2a96cec5c2 /tests/examplefiles/example.ng2
parentc4d1c52985c0664cf82d94304ca33de726dadba6 (diff)
downloadpygments-git-06e87d7b2753ed6bbccb77197203340bcfcbe448.tar.gz
Lexer for Angular 2 template engine added
Diffstat (limited to 'tests/examplefiles/example.ng2')
-rw-r--r--tests/examplefiles/example.ng211
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/examplefiles/example.ng2 b/tests/examplefiles/example.ng2
new file mode 100644
index 00000000..0f424aca
--- /dev/null
+++ b/tests/examplefiles/example.ng2
@@ -0,0 +1,11 @@
+<div>
+ <p>{{order.DueTime | date:'d. MMMM yyyy HH:mm'}}</p>
+ <p>Status: {{order.OrderState}}</p>
+ <button (click)="deleteOrder()" *ngIf="cancelable" [value]="test" [(twoWayTest)]="foo.bar">Remove</button>
+ <ul>
+ <li *ngFor="#meal of order.Positions">
+ {{meal.Name}}
+ </li>
+ </ul>
+ <p>Preis: <b>{{order.TotalPrice | currency:'EUR':true:'1.2-2'}}</b></p>
+</div> \ No newline at end of file