Hi,
I'm new with Angular2 and I would like to ask a question:
I did sofar the following:
<html id="my-app">
<head>
<script
src="https://github.jspm.io/jmcriffey/[email protected]/traceur-runtime.js"></script>
<script src="https://jspm.io/[email protected]"></script>
<script
src="https://code.angularjs.org/2.0.0-alpha.28/angular2.dev.js"></script>
<script>System.import('app');</script>
</head>
<body>
</body>
</html>
app.ts:
/// <reference path="typings/angular2/angular2.d.ts" />
import {Component, View, bootstrap} from 'angular2/angular2';
@Component({
selector: '#my-app'
})
@View({
template: '<title>Angular second title</title>'
})
// Component controller
class MyAppComponent {
name: string;
constructor() {
this.name = 'Alice';
}
}
bootstrap(MyAppComponent);
How can I put a custom text with Angular2 into the title tag or any meta
tag inside the head element?
Thank you
--
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.