mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages
This commit is contained in:
commit
8ad3c20f5f
@ -441,7 +441,7 @@ export default function publish(topic, channel) {
|
|||||||
```javascript
|
```javascript
|
||||||
import publish from "path/to/decorators/publish";
|
import publish from "path/to/decorators/publish";
|
||||||
|
|
||||||
class FooComponent () {
|
class FooComponent {
|
||||||
@publish("foo.some.message", "component")
|
@publish("foo.some.message", "component")
|
||||||
someMethod() {
|
someMethod() {
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user