有没有办法使用VSTS使用提交消息关闭工作项?我尝试过:修复#123,关闭#123或解析#123但只关联提交到工作项.
所以基本上我正在通过提交消息关闭问题,例如在github:https://help.github.com/articles/closing-issues-via-commit-messages/ 但是使用vs团队服务.
当使用Yeoman和角度发生器时,我通过运行grunt来构建dist.这很好但我的问题是,当我实际上只需要min.js时,为什么dist文件夹还包含所有的bower组件.
在grunt文件中是否有设置我可以破解只获取供应商文件夹中的min.js文件,以保持dist.尽可能小?
我目前正在手动创建一个供应商文件夹并将min.js文件复制到我的index.html中引用它们,但如果我可以自动化它会很棒.
我有 2 个 div\xe2\x80\x99s,其中一个包含一张图像(400x600),该图像的大小将根据 div 保持其纵横比。另一个面板应填充剩余空间。当视口调整大小时,图像会按预期调整大小,但 Flex 不会填充剩余空间。如何更改弹性盒以填充剩余空间?这张 gif 显示了问题:
\n\n\n\n这就是我要做的,但我只是不知道当图像缩小时如何让更大的 div 填充。基本上,我需要 panel-2 来填充图像缩小时产生的空白。这样两个面板之间就没有空间。
\n\nbody {\r\n background-color: #afafaf;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n\r\n.container {\r\n background-color: #fff;\r\n height: 100vh;\r\n display: flex;\r\n}\r\n\r\n.img-scaleing {\r\n max-width: 100%;\r\n max-height: 100%;\r\n}\r\n\r\n.panel1 {\r\n background-color: #b7d1d4;\r\n}\r\n\r\n.panel2 {\r\n flex: 100%;\r\n background-color: #a493c3;\r\n}Run Code Online (Sandbox Code Playgroud)\r\n<div class="container">\r\n <div class="panel1">\r\n <img src="https://dummyimage.com/400x600/d4b9d4/7477a3.png" class="img-scaleing" />\r\n </div>\r\n <div class="panel2"></div>\r\n</div>Run Code Online (Sandbox Code Playgroud)\r\n代码笔: https: //codepen.io/anon/pen/oRmJZx
\n我在Windows7上使用带有角度生成器的yeoman用于web应用程序.在运行yo angular之后,我运行grunt来构建应用程序以进行部署.我在dist文件夹中的index.html文件相应地更改了连接和缩小的css和js文件.
例如,当我向index.html添加新的js文件时
<script src="bower_components/json3/lib/json3.js"></script>
Run Code Online (Sandbox Code Playgroud)
我再次咕噜咕噜地建造; index.html文件不再将css aan js文件更改为缩小文件,它基本上与app目录中的index.html完全相同.
我也尝试将json3.js放在build中:js comments:
<!-- build:js scripts/json.js -->
<script src="bower_components/json3/lib/json3.js"></script>
<!-- endbuild -->
Run Code Online (Sandbox Code Playgroud)
这里有什么我想念的吗?我必须在grunt文件中更改某些内容,例如usemin部分吗?
module ngrFilter{
'use strict';
export class UsersCtrl {
public userCollection: any[];
public userFilter: string;
constructor(){
this.userCollection = [{id:1,name:'John',surname:'Klopper'},
{id:2,name:'Mary',surname:'Schoeman'}];
}
public filterUser(user){
//The this is undefined when using as a custom filter for ng-repeat
console.log(this.userFilter)
if(user.name == this.userFilter ||
user.surname == this.userFilter){
return true;
}
}
}
angular
.module('ngrFilter',[])
.controller('UsersCtrl', UsersCtrl);
}
Run Code Online (Sandbox Code Playgroud)
使用自定义过滤器进行ng-repeat this时,filterUser方法中的属性未定义.有没有办法让这个过滤器工作或我只是做一些愚蠢的事情.
我也尝试在这里添加代码示例:http://fiddlesalad.com/typescript/custom-ngrepeat-filter/
使用ng-grid我想通过在添加到列表底部时滚动到它来显示新添加的行.
请看看插件:http://plnkr.co/edit/4jgy9wwr2HRhfhgKMKcX?p = preview
var grid = $scope.gridOptions.ngGrid;
grid.$viewport.scrollTop((($scope.myData.length - 1)* grid.config.rowHeight));
Run Code Online (Sandbox Code Playgroud)
我不明白为什么网格不会一直向下滚动.我尝试添加rowHeight,但是每次网格都不会滚动到最后一行.
我知道通过将记录添加到列表顶部将解决问题我将对网格进行排序,并且其性质将空记录推送到底部.
当使用面板内的分割按钮下拉组件时,选项未显示,我尝试使用z-index但不能获得显示在面板边缘上方的选项.
这是一个演示问题的插件:http://plnkr.co/edit/3tLsR3?p = preview
我尝试设置溢出:可见; 建议在这里 /sf/answers/837413321/但下拉列表仍未显示.
是否有其他css或javascript我可以申请帮助?
angularjs ×3
html ×2
javascript ×2
yeoman ×2
azure-devops ×1
css ×1
flexbox ×1
git ×1
gruntjs ×1
ng-grid ×1
node.js ×1
typescript ×1