├── .gitignore
├── LICENSE
├── README.md
├── analysis_options.yaml
├── lib
└── app_component.dart
├── pubspec.yaml
├── test
└── app_test.dart
└── web
├── favicon.png
├── index.html
├── main.dart
└── styles.css
/.gitignore:
--------------------------------------------------------------------------------
1 | # Files and directories created by pub
2 | .dart_tool
3 | .packages
4 | .pub/
5 | build/
6 | # Remove the following pattern if you wish to check in your lock file
7 | pubspec.lock
8 | # Directory created by dartdoc
9 | doc/api/
10 | # See https://github.com/dart-lang/site-webdev/issues/1351
11 | test/**/*.g.dart
12 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2014-2018 Google, Inc.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## Setup for Development
2 |
3 | Welcome to the example app used in the
4 | [Setup for Development](https://webdev.dartlang.org/angular/guide/setup) page
5 | of [Dart for the web](https://webdev.dartlang.org).
6 |
7 | You can run a [hosted copy](https://webdev.dartlang.org/examples/quickstart) of this
8 | sample. Or run your own copy:
9 |
10 | 1. Create a local copy of this repo (use the "Clone or download" button above).
11 | 2. Get the dependencies: `pub get`
12 | 3. Get the webdev tool: `pub global activate webdev`
13 | 4. Launch a development server: `webdev serve`
14 | 5. In a browser, open [http://localhost:8080](http://localhost:8080)
15 |
16 | ---
17 |
18 | *Note:* The content of this repository is generated from the
19 | [Angular docs repository][docs repo] by running the
20 | [dart-doc-syncer](//github.com/dart-lang/dart-doc-syncer) tool.
21 | If you find a problem with this sample's code, please open an [issue][].
22 |
23 | [docs repo]: //github.com/dart-lang/site-webdev/tree/master/examples/ng/doc/quickstart
24 | [issue]: //github.com/dart-lang/site-webdev/issues/new?title=[master]%20examples/ng/doc/quickstart
25 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | analyzer:
2 | exclude: [build/**]
3 | errors:
4 | uri_has_not_been_generated: ignore
5 | plugins:
6 | - angular
7 |
8 | # Lint rules and documentation, see http://dart-lang.github.io/linter/lints
9 | linter:
10 | rules:
11 | - cancel_subscriptions
12 | - hash_and_equals
13 | - iterable_contains_unrelated_type
14 | - list_remove_unrelated_type
15 | - test_types_in_equals
16 | - unnecessary_const
17 | - unnecessary_new
18 | - unrelated_type_equality_checks
19 | - valid_regexps
20 |
--------------------------------------------------------------------------------
/lib/app_component.dart:
--------------------------------------------------------------------------------
1 | import 'package:angular/angular.dart';
2 |
3 | @Component(
4 | selector: 'my-app',
5 | template: '