These are chat archives for Urigo/angular-meteor

21st
Mar 2016
Hongbo Miao
@Hongbo-Miao
Mar 21 2016 17:23
I tried to add import { Http } from 'angular2/http’;, but it is not in typings/angular2 folder. Is this a “bug”?
Hongbo Miao
@Hongbo-Miao
Mar 21 2016 18:30
Oh, found this: Urigo/angular2-meteor#172
Hongbo Miao
@Hongbo-Miao
Mar 21 2016 20:35
@MilosStanic Hi, which SEO method did you choose at last? thanks. I saw u asked Urigo/angular-meteor#1127 and another person asked here
Miloš Stanić
@MilosStanic
Mar 21 2016 20:39
I'm not using any... Waiting for meteor 1.3
Hongbo Miao
@Hongbo-Miao
Mar 21 2016 20:40
oh, I feel everything is stuck because of waiting meteor 1.3.
Hongbo Miao
@Hongbo-Miao
Mar 21 2016 20:46
the angular2-meteor commnity is still too small. react-meteor1.3 has a lot tutorial, video tutorial, community online already...
Miloš Stanić
@MilosStanic
Mar 21 2016 21:30
Yes, react- meteor is much more vivid
Hongbo Miao
@Hongbo-Miao
Mar 21 2016 21:31
@MilosStanic hi, follow this, angular2-meteor1.3 works perfect now

meteor update --release 1.3-rc.4
meteor create --release 1.3-rc.4 hello
cd hello
npm install https://github.com/Urigo/angular2-meteor --save
npm install https://github.com/Urigo/angular2-meteor-auto-bootstrap --save
meteor remove blaze-html-templates
meteor add angular2-compilers
Remove hello.js, hello.html, hello,css files.
Then create these two files:
// client/app.ts

import 'reflect-metadata';
import { bootstrap } from 'angular2-meteor-auto-bootstrap'
import { Component } from 'angular2/core';

@Component({
  selector: 'app',
  template: `<p>Hello World!</p>`
})
class App {}

bootstrap(App);

// client/index.html

<head>
  <title>Hello</title>
</head>

<body>
<app></app>
</body>
make sure you put import 'reflect-metadata’;first line, otherwise it won’t work
Miloš Stanić
@MilosStanic
Mar 21 2016 21:33
I tried to do exactly that two days ago, but it didnt work for me. Will try again tomorrow
Hongbo Miao
@Hongbo-Miao
Mar 21 2016 21:33
i just succeed
yeah sure
Miloš Stanić
@MilosStanic
Mar 21 2016 21:33
Are you sure you dont need package.json with angular2?
Hongbo Miao
@Hongbo-Miao
Mar 21 2016 21:33
it will be created autmatically
Miloš Stanić
@MilosStanic
Mar 21 2016 21:33
Tsconfig.json?
Hongbo Miao
@Hongbo-Miao
Mar 21 2016 21:34
no need
Miloš Stanić
@MilosStanic
Mar 21 2016 21:34
Ok, will try tomorrow, thanks a lot!
Hongbo Miao
@Hongbo-Miao
Mar 21 2016 21:35
u are welcome. for package.json, it will create automatically. just follow the step, everything will be fine
Hongbo Miao
@Hongbo-Miao
Mar 21 2016 22:09
check here Urigo/angular2-meteor#180 for creating an angular2-meteor1.3 project