I am writing an Angular application and I have an HTML response I want to display.
How do I do that? If I simply use the binding syntax {{myVal}} it encodes all HTML characters (of course).
I need somehow to …
I'm not able to translate this code from Angualr 1 to Angular 2:
ng-repeat="todo in todos | orderBy: 'completed'"
This is what i've done following the Thierry Templier's answer:
Component template:
*ngFor="#todo of todos | sort"
Component code:
@Component({
selector: 'my-app',
templateUrl: "./…
I know that in angular2 I can disable a button with the
[disable] attribute, for example:
<button [disabled]="!isValid" (click)="onConfirm()">Confirm</button>
but can I do it using [ngClass] or [ngStyle] ? Like so:
<button […