These are chat archives for angular/angular-2-ionic-2

9th
Aug 2018
Michael Watson
@tokyotoejam_gitlab
Aug 09 2018 01:30

Probably a common question, but I am new to Angular 2 and Ionic.

I generated an application with ionic, then ran

ionic generate component loginForm

added a few fields to the form html, but when running the app I am getting the error message of

‘login-form’ is not a know element?

Ionic generated the loginForm folder and added a components.module.ts so I imported it into the loginPage like so

import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { LoginPage } from './login';
import { ComponentsModule } from '../../components/components.module';

@NgModule({
  declarations: [
    LoginPage,
  ],
  imports: [
    ComponentsModule,
    IonicPageModule.forChild(LoginPage),
  ],
})
export class LoginPageModule {}

but I am still getting the error. Surely someone else has ran across this :)

Michael Watson
@tokyotoejam_gitlab
Aug 09 2018 01:36
I am attempting to use “<login-form>” from within my LoginPage html btw
Hemang Kumar
@hemangsk
Aug 09 2018 07:11
Hey guys, my angular 4 app is not detecting (mouseenter) events on phone, is there a (touchdown) event ?
google search isn't helping
most result are directed towards native js implementation of touch detection
Nikola Stekovic
@RigaNik
Aug 09 2018 09:56
@hemangsk mouseenter dosen't exist on phone cause there is not mouse for phones obviously... i guess you could use (tap)
Hemang Kumar
@hemangsk
Aug 09 2018 10:24
Thank you for the help @RigaNik
:)
Nikola Stekovic
@RigaNik
Aug 09 2018 10:49
cheers