An open API service indexing awesome lists of open source software.

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

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`