学习 angular dart 并使用 angular 图库部分库
learning angular dart and using angular gallery section library
我从大约 3 周前开始学习 Angular Dart,但我真的很难用它,特别是这种新语言的学习资源非常有限。
无论如何,我的问题是我无法从“angular 画廊部分”库中导入任何内容。
就像我尝试的时候:
import'package:angular_gallery_section/annotation/gallery_section_config.dart';
或
import 'package:angular_gallery_section/annotation/gallery_section_config.dart';
所以我无法从 angular_gallery_section 库中导入任何东西(总是有错误)
我试过这样调整“pubspec.yaml”文件:
environment:
sdk: '>=2.1.0-dev.5.0 <3.0.0'
# angular_gallery:
# arget: ":angular_gallery"
# import: "package:angular_gallery/builders.dart"
# builder_factories: [galleryAppBuilder, galleryLibBuilder, syntaxHighlightBuilder]
# build_extensions: {
# ".html": [".dart"],
# "$web$": ["index.html", "main.dart", "style.scss"]}
dependencies:
angular: ^5.1.0
# angular_gallery_section:
# path: ../../angular_gallery_sections
angular_forms: ^2.1.0
async: ^2.0.8
build: '>=0.11.1 <2.0.0'
build_config: '>=0.2.6 <0.4.0'
built_collection: ^4.0.0
collection: ^1.14.10
angular_components: '>=0.9.0 <=0.10.0'
angular_router: ^2.0.0-alpha+19
sass_builder: ^2.0.2
intl: '>=0.14.0 <0.16.0'
glob: ^1.1.5
markdown: ^2.0.0
dev_dependencies:
path: ^1.6.1
test: ^1.0.0
build_web_compilers: '>=0.3.6 <0.5.0'
build_runner: '>=0.8.10 <2.0.0'
但问题还没有解决,angular_gallery_section 的路径不工作所以我想我真的错过了:(
而不是
# angular_gallery_section:
# path: ../../angular_gallery_sections
添加
angular_gallery_section:
git:
url: git@github.com:dart-lang/angular_components_example.git
path: angular_gallery_section
我从大约 3 周前开始学习 Angular Dart,但我真的很难用它,特别是这种新语言的学习资源非常有限。 无论如何,我的问题是我无法从“angular 画廊部分”库中导入任何内容。 就像我尝试的时候:
import'package:angular_gallery_section/annotation/gallery_section_config.dart';
或
import 'package:angular_gallery_section/annotation/gallery_section_config.dart';
所以我无法从 angular_gallery_section 库中导入任何东西(总是有错误)
我试过这样调整“pubspec.yaml”文件:
environment:
sdk: '>=2.1.0-dev.5.0 <3.0.0'
# angular_gallery:
# arget: ":angular_gallery"
# import: "package:angular_gallery/builders.dart"
# builder_factories: [galleryAppBuilder, galleryLibBuilder, syntaxHighlightBuilder]
# build_extensions: {
# ".html": [".dart"],
# "$web$": ["index.html", "main.dart", "style.scss"]}
dependencies:
angular: ^5.1.0
# angular_gallery_section:
# path: ../../angular_gallery_sections
angular_forms: ^2.1.0
async: ^2.0.8
build: '>=0.11.1 <2.0.0'
build_config: '>=0.2.6 <0.4.0'
built_collection: ^4.0.0
collection: ^1.14.10
angular_components: '>=0.9.0 <=0.10.0'
angular_router: ^2.0.0-alpha+19
sass_builder: ^2.0.2
intl: '>=0.14.0 <0.16.0'
glob: ^1.1.5
markdown: ^2.0.0
dev_dependencies:
path: ^1.6.1
test: ^1.0.0
build_web_compilers: '>=0.3.6 <0.5.0'
build_runner: '>=0.8.10 <2.0.0'
但问题还没有解决,angular_gallery_section 的路径不工作所以我想我真的错过了:(
而不是
# angular_gallery_section:
# path: ../../angular_gallery_sections
添加
angular_gallery_section:
git:
url: git@github.com:dart-lang/angular_components_example.git
path: angular_gallery_section