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

14th
Jul 2016
ekiyanov
@ekiyanov
Jul 14 2016 09:44
hello
I'm stuck with custom component with ES6

In the app.html i have

<side-menu>
</side-menu>

and i have a component

import {Component} from "@angular/core"

@Component({
  selector: 'side-menu',
  templateUrl: 'build/pages/sidemenu/sidemenu.html'
})
export class SidemenuComponent {

  constructor() {
      alert('ok');
  }
}

app.js

...
import {SidemenuComponent} from './pages/sidemenu/sidemenu';
...

ok is never fired, and there is no any error at the log, and in the final html code i see only <side-menu>, without content of my templateUrl

I'm missing something but cannot realise what
kokokenada
@kokokenada
Jul 14 2016 11:21
@ekiyanov - in the component you are using side-menu in, include SidemenuComponent in the Directives attribute of the decorator.
ekiyanov
@ekiyanov
Jul 14 2016 14:32
is there any errors should be generated cause of this ?
scarmarco
@scarmarco
Jul 14 2016 18:57
How can i install font awesome in Ionic2?