Hi,
I'm looking for a way to use Angular2 without hosting or NPMing all
the angular files.
A stackexchange post suggested to include the following in my header:
<script type="text/javascript"
src="https://code.angularjs.org/2.0.0-beta.17/angular2-polyfills.js"></script>
<script type="text/javascript"
src="https://code.angularjs.org/tools/system.js"></script>
<script type="text/javascript"
src="https://code.angularjs.org/tools/typescript.js"></script>
<script type="text/javascript"
src="https://code.angularjs.org/2.0.0-beta.17/Rx.js"></script>
<script type="text/javascript"
src="https://code.angularjs.org/2.0.0-beta.17/angular2.dev.js"></script>
<script type="text/javascript"
src="https://code.angularjs.org/2.0.0-beta.17/http.dev.js"></script>
<script type="text/javascript">
System.config({
transpiler: 'typescript',
typescriptOptions: {
emitDecoratorMetadata: true
},
packages: {
'app': {
defaultExtension: 'ts'
}
}
});
System.import('app/main')
.then(null, console.error.bind(console));
</script>
I did that but then i got errors in my main.ts file when referencing the
@angular components.
Any ideas? Looking to reference the necessary files to get angular to work
without hosting on my server.
Thanks
--
You received this message because you are subscribed to the Google Groups
"Angular" 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.