我一直在梳理互联网,以获得如何以角度2显示报告的一些线索.到目前为止,我还没有找到任何我可以依赖的东西.如果有人可以帮助我,我将非常感激.
我正在尝试使AlertifyJS(v1.9.0)在我的angular 2应用程序中工作。我在vendor.ts中有以下内容
import "alertifyjs/build/alertify.min.js";
import "alertifyjs/build/css/alertify.min.css";
Run Code Online (Sandbox Code Playgroud)
通过以下调用来提醒
openConfirmationDialog(message: string, okCallback: () => any) {
alertify.confirm(message, function (e: any) {
if (e) {
okCallback();
} else {
}
});
}
Run Code Online (Sandbox Code Playgroud)
但不断得到错误
: Cannot find name 'alertify'.
Run Code Online (Sandbox Code Playgroud) 我正在按照示例尝试使用材料2 datepicker , 但我一直收到此错误
Error: Attempted to open an MdDatepicker with no associated input.
at MdDatepicker.open (material.es5.js:21344)
Run Code Online (Sandbox Code Playgroud)
下面是我的实现
<md-input-container>
<input mdInput
name="dobdate"
(selectedChanged)="onSelectDOBDate($event)"
[(ngModel)]="admissionModel.DOB"
[mdDatepicker]="picker"
placeholder="Choose a Date of Birth">
<button mdSuffix [mdDatepickerToggle]="dobpicker"></button>
</md-input-container>
<md-datepicker #dobpicker></md-datepicker>
Run Code Online (Sandbox Code Playgroud) 我将Identityserver 4升级到1.5.1版,现在出现了内容安全策略错误。到目前为止,没有一个解决方案对我有用,我尝试过
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline' https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.6/css/bootstrap.min.css; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://ajax.aspnetcdn.com/ajax/jquery/jquery-2.2.0.min.js https://ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.min.js">
Run Code Online (Sandbox Code Playgroud)
但没有什么值得的