2016-12-15 1 views
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)を置く必要があります。いずれか1つは私の問題を解決するのを助けてください。どんな助けも非常に感謝し、本当に役に立つでしょう。

答えて

0

推測ですが、ファイル名はありませんlogin.component.tns.htmllogin.component.htmlですか?

+0

nativescriptファイル名はtns.html(angular2seedadvanced)です。https://github.com/NathanWalker/angular-seed-advanced – Khushi

関連する問題