0

Running AngularJS 2.2.3 with Twitter Bootstrap 4.0.0-alpha.5. Here's what I'm getting: bad admin (thanks angular)

Versus what I want:

nice looking no angular

Full code (with rendered output): https://gist.github.com/anonymous/cbe4161acb3734c53c45c44db6db854b

EDIT: Full repo with the admin decomposed into different components: https://github.com/AlecTaylor/angular2-bootstrapv4-admin

1 Answer 1

0

You're missing:

<link href="dashboard.css" rel="stylesheet">

Also, you probably shouldn't use a CDN with Angular 2.

Add to package.json:

"bootstrap": "^4.0.0-alpha.5",

Install with npm and reference from node modules:

npm i 

reference:

You also probably want these as well:

npm i tether --save

<script src="node_modules/jquery/dist/jquery.min.js"></script>
    <script src="node_modules/tether/dist/js/tether.min.js"></script>
    <script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, silly of me not to see that dashboard.css. Anyway it's not resolved yet, it still doesn't look right. Background is grey for one. On the other side of things, the node_modules directory doesn't seem to be mapped correctly. I've tried <link href="{name}.css" rel="stylesheet"> of ./node_modules/bootstrap/dist/css/bootstrap.min.css, node_modules/bootstrap/dist/css/bootstrap.min.css, bootstrap/dist/css/bootstrap.min.css, bootstrap.min.css and more. Also I've avoiding the JQuery dependency (Angular people don't like JQuery).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.