Comments (3)
Hi @kewur.
That's quite expected. The HTML page file needs CSS and JS files to work as expected. So just saving the index.html file and opening this file won't apply the styles defined in these non-existent files.
Besides, this doesn't have anything to do with ng-bootstrap.
from ng-bootstrap.
interesting, so bootstrap isn't ssr compatible? my understanding is that seo crawlers aren't guaranteed to run javascript, hence the need to do server side rendering. adding the bootstrap.min.css file in the index.hml header as a link gets around this problem and all styles load correctly however, so it does seem possible. I would have hoped someone would've had a better solution to it.
from ng-bootstrap.
Bootstrap is SSR compatible, like any othr CSS solution. But SSR-compatible does't mean that styles are magically applied to a page even when you save a page on the disk without its associated stylesheets and then open that page.
SSR consists in rendering a page on the server so that a browser, or a bot, can load the page and get HTML that is ready to read or crawl. But of course, browsers and bots, when they see a HTML page which links to a CSS stylesheet (which is also served by the web server), do download the CSS as well:
Browser or bot Web server
______________ __________
1 ---------- GET index.html ---------------->
<----------send bach index.html content --- 2
3 read html,
find link to styles.css
4 ---------- GET styles.css ---------------->
<--------- send back styles.css content --- 5
6 render styled page
from ng-bootstrap.
Related Issues (20)
- ng-bootstrap Scrollspy : Show only one image (active) at a time
- [Carousel] Add crossfade option
- 16.0.0: Cannot destructure property 'ngbCollapse' of 'this._collapse' as it is undefined. HOT 5
- Wrong Title in Modal documentation HOT 2
- Playwright code coverage structure
- Button groups and split buttons example lacks border-radius on right due to incorrect markup order HOT 1
- footerTemplate does not customize by NgbDatepickerConfig HOT 1
- Many People need ng-bootstrap version 5.x.x and 7.x.x documentations.
- Popover is displayed after source element is destroyed HOT 4
- Accordion - unable to cancel an event
- In component example section Modal and Dropdown has a same header HOT 1
- ngbAccordionToggle is not disabled when ngbAccordionItem is disabled
- ngbDropdown inside ngbNavLink causes error
- Feature request: expose componentRef in NgbModalRef HOT 1
- ngbAccordionCollapse does not collapse when ngbAccordionItem is disabled
- Accordion directive ignores Input Id
- Offcanvas is not dismissed, starts to stack HOT 1
- i am facing issue when i build the angular application HOT 2
- accordion prevent close (or open) of a item.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-bootstrap.