Last active
August 29, 2015 14:26
-
-
Save Tk-archer/5cec769e6619ae1bff38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.... | |
$stateProvider.state('app.reply', { | |
url: '/reply', | |
views: { | |
'menuContent': { | |
templateUrl: 'reply.html', | |
controller: 'replyCtrl' | |
} | |
} | |
}); | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.... | |
Ctrls.controller('replyCtrl', | |
['$scope',function ($scope) { | |
$scope.send = function (data) { | |
console.log(data, $scope.textarea); | |
}; | |
}]); | |
.... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--reply.html--> | |
<ion-view view-title="reply"> | |
<ion-content> | |
<ion-list> | |
<form> | |
<div class="item item-input"> | |
<textarea ng-model="textarea" name="content" rows="3" placeholder="正文"></textarea> | |
</div> | |
</form> | |
</ion-list> | |
<div class="padding"> | |
<button ng-click="send(textarea)" class="button button-block button-positive">发送</button> | |
</div> | |
</ion-content> | |
</ion-view> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment