Continued angular work

I probably should note - I'm including the dist/ folder in Git because I'm not expecting everyone to have gulp/dependencies installed. Easier to hack through if you can actually build and run only the Java section of code!
This commit is contained in:
Bradlee Speice 2014-09-01 11:07:24 -04:00
parent 1255580b7a
commit 1911f3128a
3 changed files with 14 additions and 6 deletions

View File

@ -1,8 +1,10 @@
<html lang="en" ng-app>
<html lang="en" ng-app="bookApp">
<head>
<script type="text/javascript" src="file:///android_asset/dist/book-bundle.js"></script>
</head>
<body>
<div id="content">Hello {{ 'Android!' }}</div>
<body ng-controller="BookCtrl">
<div ng-repeat="verse in verses">
{{ verse.text }}
</div>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,9 @@
require 'angular'
console.log 'hello'
app = angular.module('bookApp', [])
app.controller 'BookCtrl', ['$scope', ($scope) ->
$scope.verses = [
{'text': 'hello.'}
];
]