내 angularjs 페이지에 다음과 같은 이메일 텍스트 상자가 있습니다.
<div class="form-group form-control-default required">
<input type="email" class="form-control" ng-model="signUpParams.email" name="email" id="InputEmail1" placeholder="Email" required> </div>
내 ng-dialog에 입력 된 이메일을 보여주고 싶습니다. 다음은 내 ng-dialog 스크립트 태그의 일부입니다.
<script type="text/ng-template" id="templateId">
<div class="media-body act-media-body">
<h5 class="success" style="color:#84b642">Now it is time to complete this process</h5>
<p class="margin-v-35-0">Thank you for signing up for your account. to complete this process you have to confirm by clicking the link we have mailed to your mail account : [email protected]</p>
</div>
</script>
나는 대체 할 [email protected]을 에서 P 태그 inputed 이메일 정적 데이터입니다. 어떻게 할 수 있습니까? 도움이 필요하세요? 감사
수정 됨
다음은 ng-dialog를 호출하는 컨트롤러 코드입니다.
var loginModule = angular.module('loginModule', ['ngDialog']);
loginModule.controller('loginController', function($scope, $http, $window, ngDialog) {
$scope.signUp = function() {
$http.post("/users/createUser",$scope.signUpParams)
.success(function(response)
{
if(response.status){
if(response.isUserExists){
alert(response.message);
}else if(response.isMailSendSuccessfully){
ngDialog.open({ template: 'templateId',
closeByDocument : false,
preCloseCallback: function(value) {
$window.location.href="/"
}
});
}
}else{
//SOMETHING WENT WRONG
alert(response.message);
}
}).error(function(data, status, headers, config) {
alert(data)
});
};
ngDialog.open
범위를 포함 하도록 호출을 업데이트하십시오 .
ngDialog.open({ template: 'templateId',
closeByDocument : false,
preCloseCallback: function(value) {
$window.location.href="/"
},
scope: $scope
});
이제 대화 상자에서 모델을 참조 할 수 있습니다.
<p class="margin-v-35-0">Thank ... : {{signUpParams.email}}</p>
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다