Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ember-functional-component

Attempting to use "pure functions" as components. Partially inspired by vuejs/rfcs#42.

Compatibility

  • Ember.js v3.4 or above
  • Ember CLI v3.4 or above
  • Node.js v8 or above

Installation

ember install ember-functional-component

Usage

import { createComponent } from 'ember-functional-component';

export default createComponent(props => {
  return {
    fullName: `${props.first} ${props.last}`,
  }
})
{{this.fullName}}

The function you provide will be called whenever the incoming arguments change.

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

About

Use "pure functions" as components in an Ember app.

Resources

License

Packages

No packages published