小编Jig*_*try的帖子

如何在Angular 6中的本地机器上运行Dist文件夹?

我正在Angular中构建应用程序,现在我运行了命令ng build --prod,它给了我一个dist文件夹.现在如何在Localhost上检查或提供该文件夹?

typescript angular angular6

25
推荐指数
4
解决办法
3万
查看次数

如何添加侧栏抽屉与原生导航v2?

使用react-native-navigation v1,您可以设置这样的抽屉:

drawer: {
    left: {
        screen: 'ScreenName'
    }
}
Run Code Online (Sandbox Code Playgroud)

在反应原生导航的文档中,他们提到仍然支持抽屉, 抽屉支撑

但没有使用它的例子.我尝试的方式和v1相同,但是没有用.是否有人以某种方式实现了它?

react-native-navigation wix-react-native-navigation react-native-navigation-v2

10
推荐指数
1
解决办法
7075
查看次数

使用.NET重新启动Windows App

有没有办法使用.NET代码重新启动使用.NET编写的Windows应用程序

我的意思是应用程序应该退出并重启自己,单击一个按钮.

.net c# vb.net winforms

9
推荐指数
2
解决办法
2829
查看次数

如何在主要组件中设置 NgbDatePicker 的 minDate/maxDate 以使用所有页面中的设置?

在我的 angular 4 中,我使用的是 Ng-bootstrap (v1.1.0) 我在多个模块下有多个日期选择器。我想在所有位置设置 maxDate 配置。我的文件夹结构如下。

public.module.ts
public.component.ts

---- first.module.ts
---- first.component.ts
-------------- first-sub.component.ts
..............................
..............................

---- second.module.ts
----second.component.ts
-------second-sub.component.ts
..............................
..............................
Run Code Online (Sandbox Code Playgroud)

我尝试在 public.component.ts 中初始化 NgbDatepickerConfig 如下

    constructor(config: NgbDatepickerConfig) {
          config.maxDate = { "year": 2018, "month": 7, "day": 4} ;
    }
Run Code Online (Sandbox Code Playgroud)

我正在使用以下代码来显示日历

<input type="text" id="selectDate" class="form-control" placeholder="{{'DATE_OF_INCIDENT' | translate}}" formControlName="selectDate"
                                        ngbDatepicker #selectedDate="ngbDatepicker" readonly>
Run Code Online (Sandbox Code Playgroud)

您能否提出一种方法,以便我们可以在一个地方配置日期设置,并且可以在所有使用 Ngb DatePicker 的位置使用

ng-bootstrap angular

5
推荐指数
2
解决办法
1万
查看次数

如何在 HTML 模板中使用 let ?

我正在尝试做一些应该很简单的事情:我想在 *ngFor 中执行一个函数。该函数返回一个对象。我想在一种“let”语句中设置该对象,这样我就可以在 HTML 中使用它的属性:

<div *ngFor="let productGroup of getproductGroupBySomeVariable(variable)">
            <!-- This is where I need to set a variable with the output of 
             the getProductBySomeProperty function-->
      <div *ngLet="'{{getProductBySomeProperty(productGroup.someproperty)}}' 
              as  myVar" class="ui-g">
              <!-- Here I want to use and display the properties of the 
                object created by the function above-->
            <span>{{myVar.property1}} </span>
            <span>{{myVar.property2}} </span> etc....
      </div>
</div>
Run Code Online (Sandbox Code Playgroud)

html let angular

5
推荐指数
2
解决办法
7947
查看次数

为什么 Angular ReactiveForms FormArray 会抛出错误“TypeError:无法读取 null 的属性‘updateOn’”

大家好,我有一个具有一组角色的 Formarray。在编辑期间,它会动态删除并在该表单数组中添加角色,直到这里一切正常,但是当我提交表单时,它会引发错误并且页面会刷新。

错误:TypeError:无法读取 null 的属性“updateOn”

我还附上了下面的屏幕截图在此处输入图片说明

form-control angular-reactive-forms formarray angular6

5
推荐指数
1
解决办法
1717
查看次数

Ionic 2:如何查看当前页面是Ionic 2中的根页面?

我只想检查Ionic 2中的当前页面名称,因为我在app.component.ts中使用了NavController,但这给出了一个错误,即NavController没有提供者.请建议我一些解决方案,提前谢谢.

这是我的代码如下:

constructor(platform: Platform,public alertCtrl: AlertController,public navControll:NavController) {
    this.platform=platform;
    //this.nav=nav;
    platform.ready().then(()=>{
     if(navControll.canGoBack())
     {
         platform.registerBackButtonAction(()=>this.myHandlerFunction());
     }  
      StatusBar.styleDefault();
      Splashscreen.hide();
})
}
Run Code Online (Sandbox Code Playgroud)

android ionic2 angular

4
推荐指数
1
解决办法
6497
查看次数

为什么从 Spring Framework 5.x 中退出对 Jasper 的支持?

我们一直在使用 Jasper 和 Spring Boot 作为我们项目的报告功能,但根据Spring Framework 5.x 发布文档, Jasper 支持已被取消。

  • 我可以知道为什么这样做吗?

他们建议继续使用 Spring Framework 4.3.x,以防我们需要 Jasper 支持。

  • 如果我们想升级到 Spring Framework 5.x 并且仍然使用 Jasper 怎么办,是否有其他选择?

jasper-reports spring-boot

4
推荐指数
1
解决办法
2032
查看次数

资源 URL 上下文中使用的不安全值角度错误

大家好,我想展示一个动态的 pdf。起初它向我展示了 CORS 错误。我使用 DOM Sanitizer 解决了这个问题。现在它向我显示不安全的 url 任何帮助表示赞赏。

HTML代码:

  <iframe src="{{Url}}"></iframe>
Run Code Online (Sandbox Code Playgroud)

TS Code:这里pdfSrc存放的是动态生成的pdf路径;

 this.pdfSrc = 'http://192.168.1.183/' + this.pdfPath;
 this.Url = this.sanitizer.bypassSecurityTrustUrl(this.pdfSrc);
Run Code Online (Sandbox Code Playgroud)

iframe typescript angular

4
推荐指数
1
解决办法
9855
查看次数

Angular 6 Application Breaks 在生产构建后重新加载

我有一个应用程序,我在其中保留了那个 dist 文件夹,我们在我的服务器上成功构建了完整的生产版本后获得了该文件夹。一切正常,所有模块和组件都运行良好。在我手动重新加载浏览器窗口之前,它会引发以下错误。我还使用 base-href -- /dist/ 构建了项目

        Object not found!
        The requested URL was not found on this server. If you entered the URL 
        manually please check your spelling and try again.

        If you think this is a server error, please contact the webmaster.
Run Code Online (Sandbox Code Playgroud)

typescript angular angular6

4
推荐指数
1
解决办法
7648
查看次数