我已经根据Dart,Angular 2和Polymer Together演示安装了聚合物。到目前为止,我已经有了几个要素。我现在想要使用iron-scroll-target-behavior。我无法将其导入我的飞镖计划,因为它不在我的包裹中。我有什么特别的东西与这个元素有关,我没有为其他元素做过吗?
我尝试了目录中的安装链接:
bower install iron-scroll-target-behavior
我收到错误:
EINVALID Name must be lowercase, can contain digits, dots, dashes, "@" or spaces
这是我根据演示设置的pubspec:
name: jazzcat
description: A catalog of jazz music
version: 0.0.1
environment:
sdk: '>=1.13.0 <2.0.0'
dependencies:
angular2: 2.0.0-beta.17
browser: ^0.10.0
dart_to_js_script_rewriter: ^1.0.1
polymer: ^1.0.0-rc.17
polymer_elements: ^1.0.0-rc.8
web_components: ^0.12.0
http:
transformers:
- polymer:
entry_points: web/index.html
- angular2:
resolved_identifiers:
Window: 'dart:html'
platform_directives:
- 'package:angular2/common.dart#COMMON_DIRECTIVES'
platform_pipes:
- 'package:angular2/common.dart#COMMON_PIPES'
entry_points: web/main.dart
- $dart2js:
$include: '**/*.bootstrap.initialize.dart'
minify: true
commandLineOptions:
- --trust-type-annotations
- --trust-primitives
答案 0 :(得分:1)
在等待真实的事情发生时,我创造了一个替代品。我想滚动的元素是纸质列表框。我刚刚在模板中添加了一个css类:
.scroll-list {
height: 40em; /* arbitrary height. Should be based on window height */
overflow: hidden;
overflow-y: scroll;
}
然后在列表框上:
<paper-listbox class="scroll-list">