title: W2UI with Angular
body: <p>I have following code:</p>
  
  <p></p>
  
  <pre><code>                if(w2ui.hasOwnProperty('layout')){
                      w2ui['layout'].destroy();
                  }
                  if(w2ui.hasOwnProperty('grid')){
                      w2ui['grid'].destroy();
                  }
  
                  $(function () {
                      $('#grid').w2grid({
                          name: 'grid',
                          show: {
                              footer: true
                          },
                          columns: [
                              { field: 'fname', caption: 'Date Time', size: '200px',
                                  render: function (record, index, column_index) {
                                      var html = '&lt;div&gt;'+ record.fname + ' ' + record.lname + '&lt;/div&gt;';
                                      return html;
                                  }
                              },
                              { field: 'email', caption: 'Subsystem', size: '100%' },
                              { field: 'profit',caption: 'ACCES Message Type', size: '120px', render: 'money' }
                          ],
                          records: '{{model.messages}}'
                          //[
  //                                { recid: 1, fname: 'John', lname: 'Doe', email: 'john@gmail.com', profit: 2500},
  //                                { recid: 2, fname: 'Stuart', lname: 'Motzart', email: 'stuart@gmail.com', profit: 1004},
  //                                { recid: 3, fname: 'Jin', lname: 'Franson', email: 'jin@gmail.com', profit: 473},
  //                                { recid: 4, fname: 'Susan', lname: 'Ottie', email: 'susan@gmail.com', profit: 304},
  //                                { recid: 5, fname: 'Kelly', lname: 'Silver', email: 'kelly@gmail.com', profit: 9300},
                          //]
                      });
                  });
              &lt;/script&gt;
  </code></pre>
  
  <p>Question is, how can I to deliver a data from Angular's controller.</p>
  
  <pre><code>records: '{{model.messages}}'
  </code></pre>
  
  <p>It is a classic of policy code, project ends in one month...</p>