examples/browser/app.js
function getProjects(){
    console.log('getProjects called');
    grout.Projects.get().then(function(appsList){
      console.log('apps list loaded:', appsList);
      var outHtml = '<h2>No app data</h2>';
      if (appsList) {
        outHtml = '<ul>';
        appsList.forEach(function(app){
          outHtml += '<li>' + app.name + '</li></br>'
        });
        outHtml += '</ul>';
      }
      document.getElementById("output").innerHTML = outHtml;
    });
  }
function getProjects(){
    console.log('getProjects called');
    grout.Projects.get().then(function(appsList){
      console.log('apps list loaded:', appsList);
      var outHtml = '<h2>No app data</h2>';
      if (appsList) {
        outHtml = '<ul>';
        appsList.forEach(function(app){
          outHtml += '<li>' + app.name + '</li></br>'
        });
        outHtml += '</ul>';
      }
      document.getElementById("output").innerHTML = outHtml;
    });
  }
function getProjects ( ) { console . log ( 'getProjects called' ) ; grout . Projects . get ( ) . then ( function ( appsList ) { console . log ( 'apps list loaded:' , appsList ) ; var outHtml = '<h2>No app data</h2>' ; if ( appsList ) { outHtml = '<ul>' ; appsList . forEach ( function ( app ) { outHtml += '<li>' + app . name + '</li></br>' } ) ; outHtml += '</ul>' ; } document . getElementById ( "output" ) . innerHTML = outHtml ; } ) ; }
Get list of applications
Get list of applications