These binders are a collection of common binders that many frameworks would use. Below are some examples of how you can
use these binders.
Example Uses
Fragments allows you to create binders in many ways enabling you to create your own syntax or style of templating. Here
are some examples of existing framework that could be emulated using Fragments.js and these built-in binders.
<ling-repeat="img in phone.images | filter(currentPhoneFilter)">
<imgng-src="img"ng-click="setImage(img)">
</li>
</ul>
We aren't able to get to exactly the same syntax in every case, but you will see it is close. There are two ways we are
not able to exactly duplicate Angular 1.0 syntax. First, ng-src remains consistent with the other ng-* attributes
and doesn't use curly-braces. But in Angular 1 it is one of the only (if not only) ng-* directives that does use
curly-braces. Second, formatters in both Angular 1 and 2 use colons to separate their arguments like
img in phone.images | filter:currentPhoneFilter, but fragments uses the parenthesis and commas like a function call.
If there is demand for it, perhaps we will allow this to be customizable.