mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-28 21:32:20 +00:00
commit
02c718a35a
@ -381,7 +381,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