I am attempting to make use of Ember “Services” in a discourse plugin. Right now I am just trying to get a simple proof of concept working based off of this tutorial online. Unfortunately I can’t get it working and am not sure if it’s something to do with how plugins are loaded in discourse, or if I’m just doing something wrong. Any help would be appreciated!
Right now the plugin is purely clientside, so the plugin.rb just has basic info.
# name: Test Plugin # about: A plugin to test Ember services in Discourse # version: 0.0.1 # authors: David Taylor
Uncaught TypeError: Cannot read property 'thisistest' of undefined
which I believe just means that the Service hasn’t been loaded/injected properly. I’m unsure of how to go about debugging this further.