mirror of
https://github.com/MinimalBible/MinimalBible
synced 2024-11-04 23:28:19 -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>
|
<head>
|
||||||
<script type="text/javascript" src="file:///android_asset/dist/book-bundle.js"></script>
|
<script type="text/javascript" src="file:///android_asset/dist/book-bundle.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body ng-controller="BookCtrl">
|
||||||
<div id="content">Hello {{ 'Android!' }}</div>
|
<div ng-repeat="verse in verses">
|
||||||
|
{{ verse.text }}
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</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'
|
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