-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Many thanks for your project
but also I was not able to make it work at all
I think I did everything right I imported the class module
and then copied your template example and your sass one but it seems nothing gets applied
app.module.ts
`import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { HttpClientModule } from '@angular/common/http';
import { ShadowClassModule } from 'ngx-shadow-class';
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule , HttpClientModule , ShadowClassModule ],
providers: [
StatusBar,
SplashScreen,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule {}
`
login.page.html
<ion-item > <!-- <ion-label position="floating">Password</ion-label> --> <ion-input style="text-indent: 70px;" shadow-class="my-class" class="pass" placeholder=" * * * * * * * * *" type="password" [(ngModel)]="password"></ion-input> </ion-item> <ion-item> <ion-toggle class="test-class" shadow-class="test-class test-class-global"></ion-toggle> </ion-item>
login.page.scss
`
:host {
/deep/ ion-input {
&.my-class {
width:50px;
text-indent: 79px;
}
}
}
:host {
/deep/ ion-toggle {
&.test-class {
.toggle-inner {
width: 10px;
}
button {
z-index: 9999;
}
}
}
}`
so can you please provide an example project where you are using your code I really need a way to change ionic styles
once again thanks for your efforts