Open thedarkknight197 opened 4 months ago
Duplicate of #769
In one of the component lifecycle methods, while your ssr is enabled, make sure you are in the browser before starting flowbit.
@Component({
selector: 'app-home',
standalone: true,
imports: [ ],
templateUrl: './home.component.html',
styleUrls: ['./home.component.css'],
})
export class HomeComponent {
constructor(
@Inject(PLATFORM_ID) private platformId: Object,
) {}
ngOnInit() {
if (isPlatformBrowser(this.platformId)) initFlowbite();
}
}
Reference: https://github.com/GkIgor/bug-guards-v17
Hello I have installed flowbite using this documentation: https://flowbite.com/docs/getting-started/angular/
I have imported the ui of search input in my project:
components.html
component.ts
it return:
tailwind.config:
style.css