https://github.com/denq/ember-public-mixin
Mixin for ember js. Shared your code public methods and property. On example actions methods
https://github.com/denq/ember-public-mixin
Last synced: about 1 year ago
JSON representation
Mixin for ember js. Shared your code public methods and property. On example actions methods
- Host: GitHub
- URL: https://github.com/denq/ember-public-mixin
- Owner: DenQ
- License: mit
- Created: 2015-09-27T12:10:42.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-17T13:26:58.000Z (over 10 years ago)
- Last Synced: 2025-03-12T09:24:29.995Z (over 1 year ago)
- Language: JavaScript
- Size: 184 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Ember-public-mixin
This README outlines the details of collaborating on this Ember addon.
## Installation
* `git clone` this repository
* `npm install`
* `bower install`
## Usage
`import Ember from 'ember'`
`import PublicMixin from '../mixins/public'`
IndexController = Ember.Controller.extend PublicMixin,
init:(etc...)->
@_super etc
@Signal 'public', 'Foo'
@Signal 'private', 'Foo'
@Signal 'foobar', 'Foo', 'Coffee'
return
'public':
Foo:->
console.log '1'
return
'private':
Foo:->
console.log '2'
return
'foobar':
Foo:(name)->
console.log '2', name
return
`export default IndexController`