Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

angularjs Ionic styling container

<ion-grid>
    <ion-row class="ion-align-items-center ion-justify-content-center">
        <ion-col size="3">
             <ion-card  class="card-class">
                <img  src="../assets/playIcons/player1.svg"/>
                <ion-card-header>
                <ion-card-title>{{this.player1["name"]}}</ion-card-title>
                <ion-card-title>Score: {{this.player1["score"]}}</ion-card-title>
           </ion-card-header>
         </ion-card>
       </ion-col>
       <ion-col size="6">
           <ion-grid>
               <ion-row class="ion-text-center">
                   <ion-col size="0.9" *ngFor="let c of images; let i = index">
                       <img src="../assets/cards/cardBackground/cardBackground.png" *ngIf="!c.isFlipped" (click)="selectCard(c)"/>
                       <img [src]="imageDir + c.name +  '.png'" *ngIf="c.isFlipped && !c.isMatched"  (click)="selectCard(c)"/>
                   </ion-col>
               </ion-row>
           </ion-grid>
       </ion-col>
       <ion-col size="3">
           <ion-card class="card-class">
               <img src="../assets/playIcons/player2.svg"/>

               <ion-card-header>
                   <ion-card-title>{{this.player2["name"]}}</ion-card-title>
                   <ion-card-title>Score: {{this.player2["score"]}}</ion-card-title>
               </ion-card-header>
            </ion-card>
       </ion-col>
    </ion-row>
</ion-grid>
Comment

PREVIOUS NEXT
Code Example
Javascript :: Porting Promise Chaining from AngularJs to VueJs 
Javascript :: Wait for AngularJS Service to finish running 
Javascript :: Why am I getting an error, "ReferenceError: categories is not defined" in AngularJS 
Javascript :: Angular js set default tab with ng-repeat in array object 
Javascript :: Can’t connect Express.js server to the Angular frontend 
Javascript :: How to pass React Native Component as a JSON object 
Javascript :: How do I change this React Navigation v5 code to v6 
Javascript :: In React Native / Expo, is there any way to save a specific part of an image 
Javascript :: Target one specific Jquery Data Table theader for CSS styles 
Javascript :: ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(AuthModule)[AuthService - AuthService - AngularFirestore - InjectionToken 
Javascript :: javascript get value outside function 
Javascript :: Get value by key from json array 
Javascript :: nodejs api find data with id 
Javascript :: convert json to string curl 
Javascript :: open div with onClick element position 
Javascript :: bcrypt npm 
Javascript :: function x(a) vs function x(...a) the difference 
Javascript :: Add Imaginary Property To Object 
Javascript :: for in loop of javascript 
Javascript :: removevalidators angular 
Javascript :: electron write to csv 
Javascript :: air config file 
Javascript :: add array and sort 
Javascript :: app-shell 
Javascript :: pass data between router components 
Javascript :: How to Loop Through an Array with a forEach Loop in JavaScript 
Javascript :: Backbone + Express 
Javascript :: Top Tips for Vue 3 Development 
Javascript :: nested object in javascript 
Javascript :: regex country code 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =