blob: 0e85692d6b3793c42c92d72e5609ceffc7fcfb50 [file] [log] [blame]
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library observatory_application_element;
import 'dart:html';
import 'package:observatory/app.dart';
import 'package:observatory/src/elements/helpers/tag.dart';
/// Main application tag. Responsible for instantiating an instance of
/// [ObservatoryApplication] which is passed declaratively to all child
/// elements.
class ObservatoryApplicationElement extends HtmlElement {
static const tag =
const Tag<ObservatoryApplicationElement>('observatory-application');
ObservatoryApplication app;
ObservatoryApplicationElement.created() : super.created();
@override
void attached() {
super.attached();
app = new ObservatoryApplication(this);
}
}