javascript – bower component does not connect

Question:

I want to include angular-i18n localization file using bower. When I add a script with a path to the .js file, everything works, but after restarting the server, the connected script is deleted. json bower:

{
  "name": "some_name",
  "version": "0.0.0",
  "dependencies": {
    "angular": "1.3.15",
    "angular-bootstrap": "0.12.1",
    "angular-cookies": ">=1.2.*",
    "angular-dialog-service": "5.2.8",
    "angular-i18n": "~1.4.1",
.....

error in the console when raising the server:

angular-i18n was not injected in your file

I connect to index.html

<!-- bower:js -->
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.js"></script>
<script src="bower_components/angular-i18n/angular-locale_ru-ru.js"></script>
....
<!-- endbower -->

Answer:

angular-i18n does not connect via wiredep. angular-locale_ru-ru.js outside the brackets <!-- bower:js --><!-- endbower --> otherwise it will be permanently removed.

Scroll to Top