Bootstrap and Two way binding with Angular2
Bootstrap and Two way binding with Angular2 In my previous post, we had examined event and property binding in Angular 2, along with setting up angular from scratch. In this post, we will add bootstrap 4 to our Angular2 environment, and then test a component to see some of the capabilities of the library. We will also examine two way binding using the bootstrap components.. Creating a new project Since we already installed angular-cli in the previous blog, lets create a new project called ng2-2 using "ng new" command. Let us also cd into the newly created project directory.. ng new ng2-2 cd ng2-2 This creates the new project. Installing bootstrap First step is to install bootstrap. We will install angular2 compliant bootstrap version called ng2-bootstrap. ng2-bootstrap utilizes the new Angular2 concepts to provide a Typescript based bootstrap library. Importantly it does not directly access the DOM. This step requires the following commands to be run from within the ng2 ...