Friday, 11 December 2015

Exercise-4: Use Backbone Boiler plate code

Solution

Create index.html using following code and place it in web root of your node server. Preview same in browser

Note that code in green is installed and maintained using bower 
Create a folder "js" in web root of your node server  and create a simple javascript file "main.js"
Inside "main.js" write code console.log(Backbone);
Preview the file from chrome browser and right click inspect. Check the Backbone object attributes / methods

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">

</head>

<body>

<script src="lib/jquery.min.js"></script>
<script src="lib/underscore-min.js"></script>
<script src="lib/backbone-min.js"></script>
<script src="js/main.js"></script>

</body>

</html>

No comments:

Post a Comment