2

I'm learning Angular with a little-bit old tutorial because instructor uses bootstrap 3.3.7 and at the present time I've downloaded bootstrap 4.4.1 version with which I cannot follow instructor and implement some futures (glyphicons).

Can I install the old version of bootstrap in particular project- to follow the instructor to the end of course? Or can I somehow with other way fix this problem - I mean: fix the differences in bootstrap versions?

Sorry for bad English and many thanks in advance!

Chubini
  • 115
  • 4

2 Answers2

1

There are no breaking change from bootstrap 3 to 4 so there shouldn't be any difference but in the scope of doing a tutorial I would switch to bootstrap 3 to make sure I have exactly the same result as the author.

It limits the amount of uncertainty and will make for a better learning experience : when something goes wrong you can focus on your code instead of wondering if it's because of the bootstrap version you're using.

Depending on your package manager :

with npm

npm install bootstrap@3.3.7 --save --save-exact

with yarn

yarn add bootstrap@3.3.7

This will replace your current bootstrap version

Alfred
  • 649
  • 5
  • 11
  • Thanks a lot! I've followed your advice and ordered to install 3.3.7 version but have'd got 3.4.1 (in package.json). I think there must not be too big differences. – Chubini Feb 14 '20 at 15:25
  • Oh that's my bad. Being a yarn user I'm not too familiar with npm's syntax. The correct syntax to install a specific version seems to be `npm install bootstrap@3.3.7 --save --save-exact` I updated my answer accordingly, but you're right, 3.4.1 should be fine for the tutorial – Alfred Feb 15 '20 at 17:13
0

Bootstrap 4 is a major rewrite of boostrap-3. There are some notable changes. Therefore, I think you should include all of boostrap-3 resources in your project and follow you instructor. Otherwise, you may use a lot of time configuring the differences. Later on, you can easily migrate. This links may help you.

If you use bootstap-3, you need to remove bootstrap-4 from your html file.

In case, you stick to bootstrap-4. You can use icons like font-aswesome, featericon, and bootsrap-4 icons, because bootstrap-4 has dropped Glyphicons. This guides help you how to use icons.

mahan
  • 12,366
  • 5
  • 48
  • 83
  • Thank you very much for your response! Links seems to be very usefully to me! As I've understood, at the present time I have to just order older version. – Chubini Feb 14 '20 at 15:24