News for hackers. Stuff that matters.
Re:The Truth about Svelte by diob on Wednesday July 12, 2023 @03:23AM (#36691389)
https://angular.io/guide/binding-overview

Haven't looked at angular since 2015 to be honest, but it still seems like they do weird html stuff to me, such as:

<ul> <li *ngFor="let customer of customers">{{customer.name}}</li> </ul> or <label>Type something: <input #customerInput>{{customerInput.value}} </label>

Re:The Truth about Svelte by Bilal_io on Wednesday July 12, 2023 @10:22AM (#36694981)
I agree with you, it looks weird, but my point was that it's correct HTML syntax, even though you cannot expect it to work if you open an Angular template in a browser, but an HTML parser can tell you it's syntactically correct.
Re:The Truth about Svelte by diob on Wednesday July 12, 2023 @01:16PM (#36698042)
Oh, that makes sense, I get you now.
Re:The Truth about Svelte by MrJohz on Wednesday July 12, 2023 @02:46PM (#36699783)
This is true of Svelte's syntax as well, is it not?
Re:The Truth about Svelte by Bilal_io on Thursday July 20, 2023 @09:01AM (#36799823)
Not really on:click is not valid HTML
Re:The Truth about Svelte by nsonha on Thursday July 13, 2023 @03:49AM (#36706177)
> HTML parser can tell you it's syntactically correct

Which is completely useless because your website doesn't work anyway

Re:The Truth about Svelte by ttfkam on Thursday July 13, 2023 @05:27PM (#36716223)
Angular will soon be migrating to the Svelte style of conditional flow control. https://github.com/angular/angular/discussions/50719