Skip to content

Instantly share code, notes, and snippets.

@msrivastav13
Created March 29, 2016 17:19
Show Gist options
  • Save msrivastav13/e26cefbc84c2e7f4cadb4a229d376e79 to your computer and use it in GitHub Desktop.
Save msrivastav13/e26cefbc84c2e7f4cadb4a229d376e79 to your computer and use it in GitHub Desktop.
Home page for our app with lightning Out
<!DOCTYPE html>
<html lang="en">
<head>
<% include ../partials/ldOut %>
</head>
<body class="slds">
<header>
</header>
<main>
<div >
<p>Sales Leaderboard On Heroku</p>
<div id="leaderboard"></div>
</div>
</main>
<footer>
</footer>
<script>
var url = "<%= ouathLightningURL %>";
var token = "Bearer "+"<%= oauthtoken %>";
console.log(token);
$Lightning.use("SEDreamin:SalesLeaderBoardVfApp", function() {
$Lightning.createComponent("SEDreamin:SalesLeaderMain", {},
"leaderboard",
function(cmp) {
// do some stuff
});
},url,token );
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment