Created
November 4, 2013 16:18
-
-
Save code-sur/7305059 to your computer and use it in GitHub Desktop.
activity.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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