Ui-bootstrap版本0.12.0似乎已经破坏了一些东西.这是我的傻瓜,显示了这个问题
这适用于版本0.11.0
http://plnkr.co/edit/9XJx2c2X7lRSc6V1n5BO?p=preview
如果您更换以下行,请使用此plunkr
<script data-require="ui-bootstrap@*" data-semver="0.11.0" src="http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.11.0.min.js"></script>
Run Code Online (Sandbox Code Playgroud)
WITH
<script data-require="ui-bootstrap@*" data-semver="0.12.0" src="http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.12.0.min.js"></script>
Run Code Online (Sandbox Code Playgroud)
然后下拉停止工作(当你点击).我不确定这是否是回归,但任何变通办法都会有所帮助.0.12.0有一堆对我很重要的修复,因此我必须升级.
任何帮助表示赞赏.
试图了解构建 Angular8 库的输出(因为它构建了 5 个类似的东西,每个库的构建时间都增加了) - 当我构建一个 Angular 库(bundle、esm5、esm2015、fesm5 和fesm2015)?我可以教 Angular8 只为我的库提供 ESM5 或 UMD 模块,而不是花费额外的时间来生成这些不需要的“现代浏览器”内容吗?
我读了一些关于差异加载的内容,但从构建 Angular8 库的角度来看似乎没有意义。
任何指针表示赞赏。
我一直在尝试使用主模块和3个产品模块创建一个基于cli的示例angular4应用程序(产品本身是一个路径参数,可以懒洋洋地加载每个产品屏幕).
这是我的样本 - https://github.com/shankarvn/angular4lazyloading
重现步骤
git clone https://github.com/shankarvn/angular4lazyloading.git
cd应用程序
npm安装
ng serve -p 4003
在浏览器localhost:4003 =>应该加载3张显示product1,product2和product3的卡片.此时,单击product1,您将看到路径更改和product1加载的ui.现在单击Dashboard,您将在控制台中看到错误
ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'product1/dashboard'
Error: Cannot match any routes. URL Segment: 'product1/dashboard'
at ApplyRedirects.noMatchError (router.es5.js:1404) [angular]
at CatchSubscriber.selector (router.es5.js:1379) [angular]
at CatchSubscriber.error (catch.js:104) [angular]
Run Code Online (Sandbox Code Playgroud)
不确定我做错了什么 - 只是在延迟加载product1模块时加载仪表板路径.加载product1模块时,不应该注册路由.任何帮助表示赞赏.
谢谢.
我不确定刻度位置如何与 d3 svg 轴配合使用。我尝试使用刻度、tickSize 选项,但基本上我“有时”会使用随机数据绘制开始和结束刻度
http://plnkr.co/edit/i5DBgfWzr2sa8Yugg2A8?p=preview
(请忽略angularjs方面。我感兴趣的部分是d3中的以下部分)
var make_x_axis = function () {
return d3.svg.axis()
.scale(x)
.orient("bottom")
.ticks(5)
.tickFormat("")
.tickPadding(8);
};
var make_y_axis = function () {
return d3.svg.axis()
.scale(y)
.ticks(6)
.orient("left")
.tickSize(10,10)
.tickPadding(8);
};
Run Code Online (Sandbox Code Playgroud)
如何始终为 X 轴和 Y 轴呈现开始和结束刻度?很明显,我总是在 X 和 y 轴上得到开始和结束刻度线(不确定这是怎么发生的 - 我在 chrome 检查器中的那个位置没有看到 .tick 元素)但是标签丢失了。我可以找到第一个和最后一个刻度并渲染带有刻度标签信息的文本,但显然我不能总是这样做,因为有时轴给了我开始刻度,有时它没有。
任何帮助表示赞赏。
谢谢
angular ×1
angular4 ×1
angular8 ×1
angularjs ×1
d3.js ×1
ecmascript-6 ×1
es6-modules ×1
svg ×1