且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

找不到模板-使用angularjs ngCart构建电子商务购物车

更新时间:2023-11-30 15:34:40

bower安装文件下载到的ngCart目录中查找.

look in the ngCart directory that bower installed downloaded the files to.

app/public/libraries/ngCart/template/
└── ngCart
    ├── addtocart.html
    ├── cart.html
    ├── checkout.html
    └── summary.html

然后在指令中将其写入模板位置.

then in the directive write in the template location.

<ngcart-summary template-url="/libraries/ngCart/template/ngCart/summary.html"></ngcart-summary>