You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 13, 2022. It is now read-only.
inject/save classes into controller(or $scope), then use it in runtime (need to change controller);
output JSX to template string instead of normal string, and inject our classes expression to ${} in template string (but we need to handle more edge case for special characters);
we can use solution 1 without change our transformer, but will make component code dirty.
and seems solution 2 is not too easy to implement. even we can use string concat instead of template string.
The text was updated successfully, but these errors were encountered:
May I ask, what's your interest in these changes? Are you going to use this code somehow? It's just a proof of concept of an approach that might have worked out, but see the "Issues / TBD" section of the readme:
Type-checking component attributes. This one currently is a big show stopper. TypeScript almost (but not quite) allows this. See the comments in ng1-jsx.d.ts.
If component attributes aren't type-checked, this approach is pretty useless.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
let's say we have a normal Angular template like this:
we can write it in JSX like this, but the class name is hard to support:
I think there are 2 solutions for this:
${}
in template string (but we need to handle more edge case for special characters);we can use solution 1 without change our transformer, but will make component code dirty.
and seems solution 2 is not too easy to implement. even we can use string concat instead of template string.
The text was updated successfully, but these errors were encountered: