目前,我正在将条纹集成到Angular中。在我开始将条纹元素移动到ngSwitchCase和ng-container之前,这个实现工作得很好 这就是我开始得到这个错误的时候: ERROR IntegrationError: The selectorMake sure the element exists on the page before calling mount() 原因是在ngSwitchCase出现之前,stripe尝试对元素执行mount我尝试使用ngAfterViewIni
整个应用程序的场景如下:
在根路径(页面)中,我加载了一堆水果(每个水果都像一样显示),其中终端用户可以选择并将它们添加到他/她的购物车中(通过Add to Card、-和+按钮);然后他/她可以去购物车结账和付款过程我已经将这个特性作为一个组件来实现,因为我想在购物车页面中使用这个特性,允许最终用户在那里添加或减去他/她的选择)。<ng-container *ngIf="!auth.isLoggedIn()"> To purchase fruits you must <s