6. 30 Components in 30 Minutes
Some components in 30ish
minutes (or more)
7. What do you think when you hear component?
7
+ Encapsulation/isolation
+ Composition
+ Controls/widgets
+ Web Components (today)
+ Controller+View in one
+ 42
+ Something Ember devs abuse because they're
lazy and they don't want to create routes,
controllers, views
+ Reuse
14. Quick Note on 2.0
+ A lot is changing
+ Use components today you will be fine
+ More
github.com/emberjs/rfcs
The Road to Ember 2.0
14
15. Longer Note on 2.0
+ Routable Components
+ Nicer hbs syntax for components,
+ Better attribute bindings, with support for
interpolation
+ One-way binding the default,
+ Block parameters,
+ Separating the component attributes set by its
consumers from the component properties,
+ Improved actions
15
23. Domain
+ Encapsulation
+ Separation of Concerns
+ DOM Manipulation
+ Internally avoid view language. Externally speak
in the language of the domain
+ External Contributors and Data Access
Ember-data? Inject
Services? Inject-properties, require.
Controllers? No.
24. Widgets vs Components
Data Access? DOM Manipulation
Widgets Data is provided (usually…) Yes. Often it’s the main task
Domain Components Often params are provided
and they know who to ask
for data.
{{medication-detail
medicationGuid=“AB-123”}}
Avoid
28. Resources
+ The Road to Ember 2.0 (bunch of changes to
components)
+ github.com/practicefusion
+ github.com/MiguelMadero
+ Building Ember CLI Addons
+ Ember RFCs
32