Skip to content

Commit

Permalink
Intermediate Commit
Browse files Browse the repository at this point in the history
Still trying to figure out the passing in of only surveyState
  • Loading branch information
jruzekowicz committed Jul 15, 2021
1 parent 1616bed commit bd6340f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions www/components/itinerum_tutorial/Tutorial.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/
class TutorialComponent extends React.Component {
propTypes: {
test: React.PropTypes.string,
isValid: React.PropTypes.bool,
schema: React.PropTypes.object,
result: React.PropTypes.object
Expand All @@ -12,7 +11,8 @@ class TutorialComponent extends React.Component {
return(
<div className="content-wrapper">
<div>
This is the test -> {this.props.test}
This is the first name -> {this.props.schema.fname}
This is the last name -> {this.props.schema.lname}
</div>
<div className="row">
{/* bootstrap grid as margin */}
Expand Down
6 changes: 5 additions & 1 deletion www/js/intro.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ angular.module('emission.intro', ['emission.splash.startprefs',
.controller('IntroCtrl', function($scope, $state, $window, $ionicSlideBoxDelegate,
$ionicPopup, $ionicHistory, ionicToast, $timeout, CommHelper, StartPrefs, UpdateCheck, $translate, i18nUtils) {

$scope.surveyState = { test: 'test', isValid: true, schema: {}, result: {} };
$scope.surveyState = {
isValid: true,
schema: {'fname':'Jenna', 'lname':'Ruzekowicz'},
result: {}
};
$scope.platform = $window.device.platform;
$scope.osver = $window.device.version.split(".")[0];
if($scope.platform.toLowerCase() == "android") {
Expand Down

0 comments on commit bd6340f

Please sign in to comment.