0
nativescript應用中成功部署了設備,但同時點擊登錄按鈕,它重定向到我的登錄頁面,但什麼事也不會顯示 我有什麼是:nativescript UI頁面無法正常工作
login.component.ts
@Component({
moduleId: module.id,
selector: 'demo-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.css']
})
login.component.tns.html
<StackLayout class="p-10">
<Image src="res://logo_login" stretch="none"
horizontalAlignment="center"></Image>
<TextField [(ngModel)]="email" [hint]="Email Address"
keyboardType="email" autocorrect="false"
autocapitalizationType="none"></TextField>
<TextField [(ngModel)]="password" [hint]="Password" secure="true">
</TextField>
<Button [text]="signin'" class="submit-button" (tap)="login(user)">
</Button>
<Button [text]="signup'" (tap)="signup(user)"></Button>
</StackLayout>
app.component.tns.html
<ActionItem nsRouterLink="/login" ios.position="right"
android.position="popup">
<Button [text]="'LOGIN' | translate" class="action-item"></Button>
</ActionItem>
實際上我需要放置選擇器(demo-login)。任何一個請幫我解決這個問題。任何幫助將非常可觀,真正有用。
nativescript filename是tns.html(angular2seedadvanced)https://github.com/NathanWalker/angular-seed-advanced – Khushi