title: Backbone and Requirejs. How to access to my backbone router from everywhere
body: <p>I am working on my first project using requirejs. I have a router and a view and I would like to have access to my Router.navigate() method from the view when an item is clicked. I using CoffeeScript. how can I make router global?</p>
  
  <p>router.coffee:</p>
  
  <pre><code>define [
  'jquery'
  'backbone'
  'application/views/mainView'
  'application/models/app'
  ],($,Backbone,MainView,App)-&gt;
  class Router extends Backbone.Router
    routes:
      'organisation': 'organisationScreen'
      '*actions': 'organisationScreen'
  
    constructor:() -&gt;
      super @routes
  
    initialize:()-&gt;
  
      Backbone.history.start() #pushState: true
      console.log " The Route Initialized"
  
    organisationScreen:()-&gt;
      $('.slides').fadeOut() 
      $('.confBlock').removeClass('onshow')
      $('.organisationsBlock').addClass('onshow')
  </code></pre>
  
  <p>view.coffee</p>
  
  <pre><code>define [
  'jquery'
  'backbone'
  'application/views/conferenceView'
  ],($,Backbone,ConferenceView)-&gt;
  
  class OrganisationView extends Backbone.View
  
    #el: '#appcontainer'
  
    tagName : 'li'
    className : 'organisation'
  
    events:
      'click .org-item' : 'choice'
  
  
    template : _.template($('#Organisation-template').html())
  
    initialize : ()-&gt;
     ...
  
  
    render: ()-&gt; 
     ...
  
    choice:(ev)-&gt;
      # Call Router.navigate()
  </code></pre>