Skip to content

Instantly share code, notes, and snippets.

@jamlfy
Last active August 29, 2015 14:09
Show Gist options
  • Select an option

  • Save jamlfy/738fd217d7360b4be169 to your computer and use it in GitHub Desktop.

Select an option

Save jamlfy/738fd217d7360b4be169 to your computer and use it in GitHub Desktop.
<head>
<script scr="angular.js"></script>
<script scr="ngroute.js"></script>
<script scr="myApp.js"></script>
<body np-app="myApp" ng-controller="NameController">
in myApp.js
angular.module('myApp', ['ngRoute']).controller('NameController', ['$scope', function(scope){
//... this is my controllrer
}])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment