Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

[WIP] Dart dependency injection #951

Closed
wants to merge 7 commits into from

Conversation

kwalrath
Copy link
Contributor

@thso please take a look. The jade source is pretty unreadable, so I've sent you a PDF (or you could build it yourself, using this PR). Comment whichever way is easiest for you—only the TS source, on the Dart source, in email... whatever works. Thanks for your time!

Toward the end, it got a bit ugly, since the TS version was talking about very TS/JS-specific stuff, like object hashes and the fact that interfaces don't work as provider tokens. (They do work in Dart! Or at least in Dartium... I'd better check the compiled version.) I'd appreciate any help you can give me in (1) providing good code and (2) coming up with better motivations for using string and opaque tokens.

<h2>User</h2>
<p id="user">
{{userInfo}}
<button (click)=\'nextUser()\'>Next User</button>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The \ seems redundant. Why single quote while elsewhere in the template double quotes are used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't notice that. You're right, " is better.

@kwalrath
Copy link
Contributor Author

For some reason, I can't push to this branch any more. I'll create a new branch & PR.

@kwalrath kwalrath closed this Mar 16, 2016
@kwalrath kwalrath deleted the dart-dependency-injection branch May 19, 2016 18:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants