First usable version based on AngularJS 2! Almost no converters yet, though.
This commit is contained in:
parent
8acddfe548
commit
4197bca299
13 changed files with 155 additions and 66 deletions
|
@ -1,8 +1,15 @@
|
|||
<div id="wrapper-{{index}}" class="wrapper">
|
||||
<textarea id="input-{{index}}" class="input" (change)="update()" placeholder="Please enter your input ..."
|
||||
[(ngModel)]="conversion.content">{{conversion.content}}</textarea>
|
||||
<select id="type-{{index}}" class="conversion" (change)="convert($event)">
|
||||
<option id="-1">Select conversion ...</option>
|
||||
<option *ngFor="let c of conversions" id="{{c}}">Type {{ConversionType[c]}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<!--<div id="wrapper-{{index}}" class="wrapper">-->
|
||||
<!--<textarea id="input-{{index}}" class="input" (change)="update()" placeholder="Please enter your input ..."-->
|
||||
<!--[(ngModel)]="conversion.content">{{conversion.content}}</textarea>-->
|
||||
<!--<select id="type-{{index}}" class="conversion" (change)="convert($event)">-->
|
||||
<!--<option id="-1">Select conversion ...</option>-->
|
||||
<!--<option *ngFor="let c of conversions" id="{{c}}">Type {{ConversionType[c]}}</option>-->
|
||||
<!--</select>-->
|
||||
<!--</div>-->
|
||||
|
||||
<textarea class="input" (change)="update()" placeholder="Please enter your input ..."
|
||||
[(ngModel)]="content">{{content}}</textarea>
|
||||
<select class="conversion" (change)="convert($event)">
|
||||
<option id="-1">Select conversion ...</option>
|
||||
<option *ngFor="let c of converters" id="{{c.getId()}}">{{c.getDisplayname()}}</option>
|
||||
</select>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue