Hey there, you say that's no problem but i'm having some issues, i'm 
bootstrapping the A1 app with the NgUpgrade adaptor from A2 and it works, 
but when downgrading an A2 component to a directive it just don't work, no 
errors but also nothing happens, the app work but the A2 component just 
don't bootstrap, if i have  '<my-app>Loading...</my-app>' in my app it just 
doesn't get replaced, here's my app.ts file:
import { UpgradeAdapter } from 'angular2/upgrade';
// import { bootstrap } from 'angular2/platform/browser'
import { Component } from 'angular2/core'

@Component({
    selector: 'my-app',
    template: '<h1>My First Angular 2 App</h1><h2>{{str}}</h2>',
})
export class AppComponent {
  public str: string = 'This is a string dinamically loaded.'
}

// bootstrap(AppComponent);
declare var angular: any;
var adapter: UpgradeAdapter = new UpgradeAdapter();

angular.module('taoApp').directive('my-app', adapter.downgradeNg2Component(
AppComponent)); // Only this doesn't work

adapter.bootstrap(document.body, ['taoApp']);

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to