bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Nuget in Visual Studio not installing templates folder for directive

Open atul221282 opened this issue 12 years ago • 5 comments

I am using typehead directive in angular ui bootstrap which is expecting templates folder. I am managing it via nuget and nuget is not installing template folder.

atul221282 avatar May 29 '14 10:05 atul221282

@atul221282 it works as designed - you should not include individual template files but instead use a distribution file with all the templates embedded, see https://github.com/angular-ui/bootstrap/tree/gh-pages#build-files

pkozlowski-opensource avatar May 29 '14 10:05 pkozlowski-opensource

@atul221282 The NuGet package contains ui-bootstrap.js and ui-bootstrap-tpls.js. ui-bootstrap.js doesn't contain compiled templates which lets you add your own, while the second one does contain templates as you can see here ui-bootstrap-tpls.js#L3802-4116

xt0rted avatar May 29 '14 15:05 xt0rted

Thanks a lot @pkozlowski-opensource. @xt0rted thanks for your reply too but when i install or update ui bootsrap via nuget it is not installing the file you have given in ur link and does that mean that i always have to do this manually then.

atul221282 avatar May 29 '14 22:05 atul221282

What files are being added to your project? Version 0.11.0 should add the following

Scripts
└ angular-ui
  ├ ui-bootstrap-tpls.js
  ├ ui-bootstrap-tpls.min.js
  ├ ui-bootstrap.js
  └ ui-bootstrap.min.js

xt0rted avatar May 29 '14 23:05 xt0rted

@xt0rted I got it working. I un installed my AngularJS UI Bootstrap via nuget and re installed it again and got all the files u have mentioned above. I think it was just my project references getting confused earlier. Thanks once again.

atul221282 avatar May 30 '14 00:05 atul221282