diff --git a/app/assets/javascripts/app/controllers/test.js.coffee b/app/assets/javascripts/app/controllers/test.js.coffee new file mode 100644 index 000000000..64fe57aeb --- /dev/null +++ b/app/assets/javascripts/app/controllers/test.js.coffee @@ -0,0 +1,28 @@ +class App.TestController1 extends App.Controller + constructor: -> + super + @showState = false + @hideState = false + @activeState = false + @render() + + meta: -> + {} + + show: => + @showState = true + @render() + + hide: => + @hideState = true + @render() + + active: (state) => + @activeState = state + @render() + + render: -> + @html "