The angular momentum of cosmological coronae and the inside-out growth of spiral galaxies