2015-12-20 08:31:48 -05:00
|
|
|
// #docplaster
|
2015-12-15 11:38:42 +00:00
|
|
|
// #docregion
|
|
|
|
// #docregion iife
|
|
|
|
(function(app) {
|
|
|
|
// #enddocregion iife
|
|
|
|
// #docregion ng-namespace-funcs, export
|
2015-12-20 08:31:48 -05:00
|
|
|
app.AppComponent =
|
2015-12-15 11:38:42 +00:00
|
|
|
// #enddocregion export
|
|
|
|
// #docregion component
|
2015-12-20 08:31:48 -05:00
|
|
|
ng.core.Component({
|
2015-12-15 11:38:42 +00:00
|
|
|
// #enddocregion ng-namespace-funcs
|
|
|
|
selector: 'my-app',
|
2016-09-20 05:24:40 +02:00
|
|
|
template: '<h1>My First Angular App</h1>'
|
2015-12-15 11:38:42 +00:00
|
|
|
// #docregion ng-namespace-funcs
|
|
|
|
})
|
|
|
|
// #enddocregion component
|
|
|
|
// #docregion class
|
|
|
|
.Class({
|
|
|
|
// #enddocregion ng-namespace-funcs
|
|
|
|
constructor: function() {}
|
|
|
|
// #docregion ng-namespace-funcs
|
|
|
|
});
|
|
|
|
// #enddocregion class
|
|
|
|
// #enddocregion ng-namespace-funcs
|
|
|
|
// #docregion iife
|
|
|
|
})(window.app || (window.app = {}));
|
|
|
|
// #enddocregion iife
|