![](/img/trans.png)
[英]How to exclude Bootstrap's CSS from encapsulation in Angular?
組件導入 Bootstrap 以引用變量或 mixin: HTML 包含自定義 CSS 元素,但主要是標准的 Bootstrap 元素: 視圖封裝從 Bootstrap 類生成 CSS,我想避免它: 是否可以從 View Encapsulation 中排除 Bootstrap,並且仍然能夠將 B ...
[英]How to exclude Bootstrap's CSS from encapsulation in Angular?
組件導入 Bootstrap 以引用變量或 mixin: HTML 包含自定義 CSS 元素,但主要是標准的 Bootstrap 元素: 視圖封裝從 Bootstrap 類生成 CSS,我想避免它: 是否可以從 View Encapsulation 中排除 Bootstrap,並且仍然能夠將 B ...
[英]Bootstrap navbar dropdown problem on angular
我在使用 Angular 上的引導導航欄時遇到問題,我無法加載下拉菜單。 引導腳本鏈接在 angular.json 文件中,我真的不明白為什么。 在在線編輯器上,相同的代碼工作正常。 我附上代碼。 我試圖在他們的網站上修改引導代碼之后的代碼。 但無論如何都不起作用,我嘗試將我的代碼上傳到 stack ...
[英]How do I create an HTML responsive table with first 3 fixed/frozen left column and a scrollable body in angular 11?
我正在研究 angular 11 和 ng-bootstrap 9.1,我需要制作一個固定前 3 列的表格,同時它也應該響應,我已經修復了它但找不到萬無一失的解決方案使其響應(用戶界面在某些時候中斷)。 我知道這個問題與其他一些問題類似,例如: 具有固定標題和固定列的 HTML 表格? 滾動時 ...
[英]row and col classes are not expending the entire available width unless using form or p elements
在我正在處理的應用程序中使用引導程序時,我不斷遇到奇怪的行為。 這是我第一次遇到這樣的行為。 這是 HTML 如上圖所示,整個contain占據了頁面的1/3左右。 添加 width = 100% 沒有任何不同。 然而,那些正在工作使用px或rem作為寬度會使 div.row 更寬。 使用p或表單 ...
[英]Angular 13 adding ngx-sharebuttons getting error like "Cannot find module '@angular/cdk/clipboard' or its corresponding type declarations."
i am making a web site in angular 13 with using Bootstrap 5 Laravel api etc.Here i use a share social media button for my pages. 當我安裝 ngx-sharebutto ...
[英]How to implement normal Bootstrap to Angular application?
我還想知道,即使我們使用腳本安裝引導程序,angular 應用程序有時也不支持導航欄 class、折疊 class 和下拉菜單、切換按鈕。 我想知道的是如何能夠一次實現對 Angular 應用程序的每個 Bootstrap class 支持。 請幫助我。 感謝您! ...
[英]Angular is not updating view with boolean variable in the rxjs pipe
我對Angular 14有疑問,它在查詢數據時沒有更新視圖。 當從服務器加載數據時,我想在我的 HTML 中顯示加載微調器。 我正在使用ngbTypeahead來獲取建議/提示。 當我在 function 中設置 boolean 值時,它不會在視圖中顯示任何內容。 我嘗試使用NgZone並run A ...
[英]ngb-Datepicker show wrong month on popup
我正在使用angular 引導程序日期選擇器並遇到一些奇怪的問題。 打開網頁時,一切看起來都很好,但是當我想更改日期並單擊日歷按鈕以獲取彈出式日歷時,它顯示錯誤的月份,如果我單擊日期,我將獲得日期向前 1 個月。 例如,當我在 8 月 8 日打開頁面時,日期顯示為 8 月 8 日,彈出窗口顯示月份: ...
[英]How to close bootstrap angular modal after redirect?
導航到頁面后,我試圖關閉 boostrap 模式。 但是,當我導航到頁面時,模式保持打開狀態。 我嘗試使用 activeModal class 中的關閉方法,但仍保持打開狀態。 這是我的代碼: ...
[英]I am getting this error when i try to add bootstrap in my Angular project
我也嘗試使用以下命令, 它沒有用,所以我刪除了node_modules和package-lock.json文件。 我使用以下命令重新安裝了它。 我仍然有同樣的問題。 有人有想法嗎? ...
[英]How to open model from ts file of angular?
我嘗試在我的頁面上打開模型正在加載 HTML TS文件 但是模型沒有打開? 我想從 ngInit() 觸發啟動演示模式按鈕上的 click() 事件 ...
[英]Angular Bootstrap Carousel-> Remove slide number text from top of ng carousal
我正在使用 Angular Bootstrap Carousel 在我的主頁上運行圖像幻燈片,它始終顯示文本為:“Slide 1 of 4”。 我嘗試了很多東西,但無法刪除它。 已經問過類似的問題,但它的解決方案對我不起作用: Remove slide number text from top o ...
[英]Vertically aligning items in a col > row using Flex
我對 Flex 很陌生,想知道是否有辦法讓我在 col -> 行中對齊某些項目。 我正在考慮保持它的彈性(最好不使用浮點數),因為它會讓我的響應更容易,但我對 HTML 和 CSS 的變化持開放態度。 我有這張通過引導程序制作的垂直對齊的卡片: 我希望指標和標簽位於底部,rest 位於頂部。 ...
[英]Type number is not assignable to type string | readonly string[] in angular bootstrap table sorting feature
我正在 Angular 13 版本中創建一個項目。 我使用 Angular Bootstrap 庫創建了一個可排序和可搜索的列表。 我已按照以下鏈接創建列表: https://ng-bootstrap.github.io/#/components/table/examples#sortable代碼 ...
[英]Angular : how to add dynamic options in ngb-dropdown
我正在使用 ngb-dropdown 在我的應用程序中顯示下拉列表我有一個場景,我需要撥打 API 來獲取和顯示下拉項目我正在嘗試使用 *ngFor 動態添加選項,但似乎它不起作用任何人都可以幫助以正確的方式實現這一目標嗎? 下面是示例代碼<div ngbDropdown class="d-i ...
[英]Bootstrap accordion causes infinite re-renders
我剛剛將一個 Angular 項目從版本 11 升級到 12,包括對@ng-bootstrap/ng-bootstrap (從 v6 到 v10)的更新。 升級非常順利,沒有任何困難的變化,但是我現在面臨 Bootstrap 手風琴的一個奇怪問題。 我注意到它不斷在頁面上重新渲染,導致最大調用堆棧 ...
[英]Unable to set default date in angular bootstrap datepicker control
我正在使用 AngularBootstrap 日期選擇器控件來選擇日期。 我想在加載表單時在控件中設置默認日期。 這是我的 HTML 代碼: <div class="input-group"> <input class="form-control" placeholder=" ...
[英]How to add bootstrap in an Angular library
我的版本是: 我用這些命令創建了一個庫: 第 1 步: ng new my-workspace --create-application=false 第 2 步: cd my-workspace然后ng generate library my-lib 第三步: cd projects/my-lib/ ...
[英]Using Boostrap 4 in an Angular 11 project
我正在嘗試在 Angulat 11 項目中使用 Boostrap 4。 在我的asests/styles.scss我添加了 在我的angular.json中我添加了 現在我正在嘗試在導航欄中進行下拉 但是,當我單擊導航項時,不會出現下拉菜單,而是瀏覽器導航到/ 。 是否可以讓 Boostrap 與 ...
[英]ngx-bootstrap datepicker localization month is lowercase
當我本地化BsDatepicker時,除英文本地化外,月份都是小寫的 我怎樣才能使所有的標題或小寫? ...