草庐IT

angular-components

全部标签

angularjs - 如何使用 npm 找到我的机器中已经安装的 angular-route

我是angularjs的初学者,学习了如何使用指令。现在,作为学习MVC模型的一部分,我想为此将模型与View分开,我创建了相应的html和js文件。在我理解的Angular文档上,为了在模型和View之间进行通信,我们需要使用“ngroute”,所以我尝试使用npm命令安装它,如下所示C:\npminstallangular-route我收到以下错误作为输出C:\`--angular-route@1.5.8npmWARNenoentENOENT:nosuchfileordirectory,open'C:\package.json'npmWARN!invalid#1Nodescript

angular - PrimeNG 数据表未在 Angular 2 应用程序中显示

我正在使用visualstudio2015解决方案中的typescript开发Angular2应用程序。我已阅读PrimeNG网站上的数据表文档,但不明白为什么我实现的数据表没有显示。有人可以帮忙吗?风险列表.component.tsimport{Component}from'@angular/core'@Component({selector:'rm-risks',templateUrl:'app/risks/risk-list.component.html'})exportclassRiskListComponent{pageTitle:string='RiskList';risk

c# - 修复 MSI 卸载失败导致错误 2908 和 "UNKNOWN\Components"oprhaned 注册表项的答案

MSI软件包卸载失败导致进一步安装尝试在MSI日志中返回错误2908(msiexec返回1603)的问题出现在很多不同的论坛中,所以我只想给出我的解决方案,因为我们已经出现了多年来,我时不时地看到它的程序化解决方案。一般原因是MSI卸载程序在SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components下的LOCALMACHINE配置单元的注册表中创建了“孤立键”典型的MSIEXEC日志错误如下所示:MSI(s)(2C:0C)[14:52:21:490]:注意:1:14012:UNKNOW

windows - Angular 2 如何从存储中删除列表项

如何通过点击按钮从存储(Storage)中移除元素。元素通过input输入并添加到页面中。新项目存储在存储中。现在情况是这样的-通过单击按钮删除页面上的元素,当我更新页面时,它们仍然保留在原位。它们继续存储在某个地方。文件home.html{{place.title}}Delete文件home.tsimport{Component}from'@angular/core';import{Storage}from'@ionic/storage';/***doesnotwork***/import{ModalController,NavController}from'ionic-angula

angular - 刷新页面时显示找不到页面

我开发了Angular7应用程序。我想在普通的Windows7桌面上托管(它没有安装IIS)。当我刷新页面/路由时,它说"404NotFound-TherequestedURLwasnotfoundontheserver".我不想使用"HashLocationStrategy"。我尝试如下创建web.config并添加到项目文件夹中在上面的代码中,我尝试将重写URL保留为“/”但没有帮助我仍然遇到同样的错误。我的index.html页面Title我除了刷新后页面重新加载,但我收到404错误你能帮我解决这个问题/如何配置web.config。提前致谢 最佳答案

Android Studio 卡在 "Downloading Components"

我已经在安装androidstudio,当我想下载sdkmanager等组件时,我被困在这里像这样: 最佳答案 我遇到了完全相同的问题,在反复看到这些非描述性的下载后,我感到很沮丧。在高速互联网上下载也需要很多时间。请稍等,它会完成。 关于AndroidStudio卡在"DownloadingComponents",我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/47157989/

windows - OleDbException (0x80004005) : Oracle client and networking components were not found. 我该如何解决这个问题?

我想在我的web应用程序中使用oledb连接(msdaora.dll)连接到oracle。我使用:IIS7.564bitwindowsserver2008r2enterprise.64bitoracle11g32bitoracleclientvisualstudio201032bitmsdaora.dllmyaplicationis.aspx我的错误是什么:ServerErrorin'/PPIGanTT'Application.--------------------------------------------------------------------------------

c# - 系统.UnauthorizedAccessException : Creating an instance of the COM component fails with error 80070005 (C#)

我在使用C#.NET命令行应用程序时遇到问题,其主要思想是使用COM对象从其他程序获取数据。当手动执行或作为Node.js服务器中的子进程运行时,它工作正常,但是当整个项目作为Windows服务安装时,C#应用程序响应以下错误:System.UnauthorizedAccessException:CreatinganinstanceoftheCOMcomponentwithCLSID{D64DB4A9-3B26-4D2B-B556-9DA433C54175}fromtheIClassFactoryfailedduetothefollowingerror:80070005Accessis

c# View 调用 Angular 组件中断,但直接调用 Angular 工作正常

如何修复我的路由?我有一个带有Angular前端的C#项目。如果我转到调用Angular组件的c#View,一切都会中断。如果我调用AngularView(直接从URL),一切正常。C#路由到C#View如果我在startup.cs中正确路由,我会去:xxx/Home/index这只是一个调用Angular组件的View(它会抛出一堆500错误)手动路由到Angular如果我手动将/anything添加到url(xxx/Home/Index/anything),Angular路由将接管一切并正常加载。索引方法调用publicclassHomeController:Controller{

关于 Angular 应用 Module 的 forRoot 方法的讨论

在Angular开发中,我们经常遇到一个NgModule在导入时需要调用它的静态forRoot方法。,最值得注意的例子是RouterModule.当在Angular应用的根目录注册这个模块时,导入RouterModule的方式如下:import{RouterModule,Routes}from'@angular/router';constroutes:Routes=[{path:'',redirectTo:'/index',pathMatch:'full'}];@NgModule({imports:[RouterModule.forRoot(routes)],...})exportclassA