Skip to content

Instantly share code, notes, and snippets.

@vojtatranta
Created May 10, 2016 11:17
Show Gist options
  • Save vojtatranta/b35e1555e476cc50129e1959b821bd16 to your computer and use it in GitHub Desktop.
Save vojtatranta/b35e1555e476cc50129e1959b821bd16 to your computer and use it in GitHub Desktop.
electron angular
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
</body>
<script src="./angular.js"></script>
<script>
const { Menu } = require('electron').remote
const controller = window.angular.getService("MenuController")
menuTemplate = [
{
label: 'VIew'
submenu: [
{
label: "tvoje mama"
click: controller.handleTvojeMamaClick
}
]
}
]
Menu.setTemplate(Menu.buildFromTemplate(menuTemplate))
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment