- onenote.git
- src
- electron
- window
- onenote
- angular.js
This file ( 886B ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
require('angular/angular');
require('angular-aria');
require('angular-animate');
require('angular-messages');
require('angular-material');
global.p3x.onenote.ng = angular.module('p3x-onenote', [
'ngMaterial', 'ngMessages'
]);
require('./angular/prompt');
require('./angular/toast');
global.p3x.onenote.ng.run((p3xOnenotePrompt, p3xOnenoteToast, $rootScope) => {
global.p3x.onenote.prompt = p3xOnenotePrompt;
global.p3x.onenote.toast = p3xOnenoteToast;
global.p3x.onenote.root = $rootScope
$rootScope.p3x = {
onenote: {
lang: global.p3x.onenote.lang,
location: undefined,
copyLocation: require('./action/get-location'),
}
}
})
angular.element(document).ready(() => {
const bootstrapElement = document.getElementById('p3x-onenote-bootstrap');
angular.bootstrap(bootstrapElement, ['p3x-onenote']);
})