Skip to content

Instantly share code, notes, and snippets.

@code-sur
Created November 4, 2013 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save code-sur/7305059 to your computer and use it in GitHub Desktop.
Save code-sur/7305059 to your computer and use it in GitHub Desktop.
activity.js
'use strict';
/* Here my own activity specific config */
requirejs.config({
paths: {
angular: "angular/angular"
},
shim: {
angular: {
exports: 'angular'
}
}
});
define(function (require) {
var activity = require("sugar-web/activity/activity");
var app = require("activity/app");
var angular = require("angular");
// Manipulate the DOM only when it is ready.
require(['domReady!'], function (doc) {
// Initialize the activity.
activity.setup();
angular.bootstrap(doc, ['myApp']);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment