Bower installation for yeoman angular app

When we are behind proxy some times bower install gives error as :

retry Request to https://bower.herokuapp.com/packages/angular failed with ECONNRESET, retrying in 1.2s

Then we have to update .bowerrc file(which is in root direcory)with below proxy configuration:

{
  "directory": "app/bower_components",
  "registry": "http://bower.herokuapp.com",
  "proxy":"http://proxy-name:port-number/",
  "https-proxy":"http:/proxy-name:port-number/",
  "strict-ssl": false
}

Dont miss the https-proxy.I missed it once and i was unable to download some dependent repos of bower.After this you can happily go with your bower install