You should try angular-cli which is the recommended way to work with angular2.
To create a new project you have to install angular-cli with the command
npm install -g angular-cli
then you can create a new angular2 project with
ng new your-new-project-name
and finally to add a new global dependency by following this guide (https://github.com/angular/angular-cli#global-library-installation). I reproduce the content here for bootstrap.
npm install bootstrap@next
Then add the needed script files to apps[0].script
s in agular-cli.json
file:
"scripts": [
"../node_modules/jquery/dist/jquery.js",
"../node_modules/tether/dist/js/tether.js",
"../node_modules/bootstrap/dist/js/bootstrap.js"
],
Finally add the Bootstrap CSS to the apps[0].styles
array in agular-cli.json
:
"styles": [
"../node_modules/bootstrap/dist/css/bootstrap.css",
"styles.css"
],
Finally you can deploy your application using ng serve from the root of the newly created project.