npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ionic-denizhan-fixed-module

v1.0.1

Published

Custom Login&Register pages with feature of saving access-token to the local storage.

Downloads

4

Readme

Custom Home & Login & Register Pages

This is a custom ionic module made by Denizhan Aras. This module includes custom Home, Login and Register pages with feature of saving access-token response from portalium auth module to the local storage. There are Guard and Auth services provided with the support of checking login status of the user.

Installing the package

  • Navigate to your ionic app's folder.
  • Use npm i ionic-denizhan-fixed-module command to install package.

Using Home,Login and Register Pages in your app

--> 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 { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';

//required to route app to our custom components using app-routing.module.
import { HttpClientModule } from '@angular/common/http'; 

@NgModule({
  declarations: [AppComponent],
  entryComponents: [],
  
  // Add HttpClientModule to imports.
  imports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule, HttpClientModule],
  providers: [{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }],
  bootstrap: [AppComponent],
})
export class AppModule {}

--> app-routing.module.ts

import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';

//import our custom modules from 'ionic-denizhan-fixed-module'.
import { HomePage, LoginPage, RegisterPage } from 'ionic-denizhan-fixed-module';

//Add custom modules to route with appropriate paths.
const routes: Routes = [
  {
    path: 'home',
    component: HomePage
  },
  {
    path: 'login',
    component: LoginPage
  },
  {
    path: 'register',
    component: RegisterPage
  }
];

@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule { }

--> app.component.html

// Add your welcome page design. 
// Don't forget to add routerLink and router-outlet for navigation.

  <h1 class="center">Welcome!</h1>
  <nav class="center">
    <a routerLink="home">Homepage</a>
  </nav>
  <router-outlet></router-outlet>

Run app!

  • Run the app by using ionic serve command.
  • "app.component.html" should appear.
  • You can navigate to custom Homepage according to your -app.component.html design.
  • There, you can select Login or Register buttons.