1. #1
    Ext Premium Member halcwb's Avatar
    Join Date
    Mar 2010
    Location
    Rotterdam
    Posts
    379
    Vote Rating
    39
    halcwb has a spectacular aura about halcwb has a spectacular aura about

      1  

    Default Declarative wiring controllers events and handlers

    Declarative wiring controllers events and handlers


    The controller.listen method offers a nice way to declare the wiring between controllers and views, stores and other controllers via events. The setup below shows how in one declarative json, in theory, you can define the whole wiring for an application. The advantage could be that you'll have a much better overview of what controller listens to what event and which class will fire that event.


  2. #2
    Touch Premium Member
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,339
    Vote Rating
    130
    LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all

      1  

    Default


    I noticed that the InitController class is extending Ext.Base. I don't think this is required, but probably is not causing any issues.

    Code:
    Ext.define('InitController', {
        extend: 'Ext.Base',

Thread Participants: 1

Tags for this Thread