mirror of
https://github.com/MinimalBible/MinimalBible
synced 2024-12-22 14:48:23 -05:00
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:
parent
1255580b7a
commit
1911f3128a
@ -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>
|
||||
|
4
app/src/main/assets/dist/book-bundle.js
vendored
4
app/src/main/assets/dist/book-bundle.js
vendored
File diff suppressed because one or more lines are too long
@ -1,3 +1,9 @@
|
||||
require 'angular'
|
||||
|
||||
console.log 'hello'
|
||||
app = angular.module('bookApp', [])
|
||||
|
||||
app.controller 'BookCtrl', ['$scope', ($scope) ->
|
||||
$scope.verses = [
|
||||
{'text': 'hello.'}
|
||||
];
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user