mirror of
https://github.com/MinimalBible/MinimalBible
synced 2025-07-02 22:34:44 -04:00
Begin parsing OSIS on my own
Also add Kotlin, since I'd like to do what I can to get away from Java.
This commit is contained in:
8
app/src/main/assets/dist/book-bundle.js
vendored
8
app/src/main/assets/dist/book-bundle.js
vendored
@ -9,11 +9,7 @@ app = angular.module('bookApp', []);
|
||||
|
||||
app.controller('BookCtrl', [
|
||||
'$scope', function($scope) {
|
||||
$scope.verses = [
|
||||
{
|
||||
'text': 'hello.'
|
||||
}
|
||||
];
|
||||
$scope.verses = [];
|
||||
return $scope.appendVerse = function(text) {
|
||||
return $scope.verses.push({
|
||||
'text': text
|
||||
@ -31,8 +27,6 @@ window.appendVerse = function(text) {
|
||||
return scope.$apply();
|
||||
};
|
||||
|
||||
console.log(Android.testReturn("Good morning."));
|
||||
|
||||
|
||||
/*
|
||||
Future reference: Get the controller scope like so:
|
||||
|
@ -4,9 +4,7 @@ require 'angular'
|
||||
app = angular.module('bookApp', [])
|
||||
|
||||
app.controller 'BookCtrl', ['$scope', ($scope) ->
|
||||
$scope.verses = [
|
||||
{'text': 'hello.'}
|
||||
];
|
||||
$scope.verses = []
|
||||
|
||||
$scope.appendVerse = (text) ->
|
||||
$scope.verses.push {'text': text}
|
||||
@ -23,8 +21,6 @@ window.appendVerse = (text) ->
|
||||
# Since we're calling outside of angular, we need to manually apply
|
||||
scope.$apply()
|
||||
|
||||
console.log Android.testReturn "Good morning."
|
||||
|
||||
###
|
||||
Future reference: Get the controller scope like so:
|
||||
angular.element($("<controller-element>")).scope().<function>
|
||||
|
Reference in New Issue
Block a user