Hello all,

I am hoping someone here can provide some guidance on the CURRENT proper 
way to get a project up and running in VS2015. I realize the build process 
for VS is still in flux for NG2.

Here is what I have done. I start a new project using the "HTML With 
Typescript" project template. This creates a basic app.ts, index.html and 
app.css file which I remove and add my own app.ts file.

I read that the latest release of angular (since alpha-42) includes the 
type descriptions so I simply run npm install angular2 in the my project 
directory which of course gives me the node_module/angular2/ path with a 
ton of supporting files.

The contents of this file are bare bones just so I can get the project to 
build:

import {Component, bootstrap} from 'angular2/angular2';


@Component({
    selector: 'my-app'
})


class MyApp {
}


bootstrap(MyApp);

My HTML is incredibly simple as well:

<!DOCTYPE html>


<html lang="en">
<head>
    <meta charset="utf-8" />
    <title></title>


    <!-- Libs -->
    <script src="https://code.angularjs.org/tools/system.js";></script>
    <script src="https://code.angularjs.org/2.0.0-alpha.44/angular2.dev.js";
></script>
    <script>System.import('app');</script>
</head>
<body>


    <my-app></my-app>
    


</body>
</html>

However when I try to build my project I get the (seemingly common) 'Cannot 
find module angular2/angular2' build error.

Can anyone give me some guidance on how to PROPERLY get this set up? It 
seems very flaky at the moment because last night I was able to get a 
similar sample app set up on another machine (after much hacking around it 
just seemed to suddenly work, with the eventual structure exactly as I have 
it shown above).

Please help!

Thanks all.

-- 
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to