Console.log don't works

Hi,

im already developed an app on ionic 1 with “standard” js/angular code, and im no trying to get into ionic 2 with typescript.

My first problem, which stops me on going further is that “console.log” seems not to work?

Here is my Code:

import { Component } from '@angular/core';

import { NavController } from 'ionic-angular';

@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class Home {

  
  constructor(public navCtrl: NavController) {

    // Works
    alert('Test-Alert');

    // No Output on Console
    console.log("Test-Console");

  }

}

What am i doing wrong?

Works fine for me using ionic serve.

Are you using the latest version of Ionic 2?

thanks for your reply,

yes, im using the latest version of ionic2. i also tested this code with ioni serve in google chrome.

Strange as this works for me.

Are you getting any errors in the Ionic CLI when running ionic serve? Same, if you do a build process?

no errors in the console at ionic serve or at the build process.
i’ll try to completely remove ionic and reinstall it. i thought that there is maybe another command for console.log in typescript.

Typescript doesn’t get run. Typescript is a language that when down rendered becomes JavaScript, your browser is still running JavaScript.

Can you set a breakpoint on your console.log line in your browser session and make sure it’s getting it?