Posts

Showing posts from September, 2019

Could not find module “@angular-devkit/build-angular”

=========================================== You may try this one also==> npm install ng update and finally npm update

error placement - remove "has-success" class if input field is empty and still green border occures

 unhighlight : function(element,errorClass, validClass) {                         if ($(element).parent().hasClass('has-error')) {                           $(element).parent().addClass("has-success").removeClass("has-error");                           $(element).next('.FeRror').css('display','none');                         }                                              //console.log($(element).val());                                            //console.log($(element).val() == "");       ...

placement of Error Div of checkbox by Jqueryt

<form name="MovieSurvey" id="formId" action="page2.php" method="post">     <fieldset id="q8">         <legend class="Q8"></legend>         <label class="question">What are your favourite genres of movies?<span>*</span>         </label>         <div class="fieldset content">             <ul class="checkbox-grid">                 <li>                     <input type="checkbox" name="q8[]" value="Action">                     <label for="checkgenre[]">Action</label>                 </li>                 <li>            ...

How to Add Bootstrap to an Angular CLI project

Image
Although the setup seems simple, I still get a lot of questions on how to setup an Angular project generated with Angular CLI with Bootstrap. So let’s see the step by step in the sections below. 1: Creating an Angular project with Angular CLI The first step is creating your Angular project using  Angular CLI . For this example we will use the following command: ng new angular-bootstrap-example 2: Installing Bootstrap from NPM Next, we need to install Bootstrap. Change the directory to the project we created ( cd angular-bootstrap-example ) and execute the following command: For Bootstrap 3: npm install bootstrap@3.3.7 For Bootstrap 4: npm install bootstrap 2.1: Alternative: Local Bootstrap CSS As an alternative, you can also download the Bootstrap CSS and add it locally to your project. I donwloaded Bootstrap  from the website  and created a folder  styles  (same level as  styles.css ):  Don’t place your local CS...