Day: January 5, 2019

AngularJS
Framework
Web Programming

Form Validation using AngularJS

Steps: 1. Create a simple form using bootstrap or without bootstrap. <!doctype html> <html ng-app> <head> <meta charset=”utf-8″> <title>Form validation using Angularjs</title> <script src=”angular.js”></script> <link href=”bootstrap.css” rel=”stylesheet” /> <link href=”bootstrap-theme.css” rel=”stylesheet” /> </head> <body> <form style=”width:60%” name=”custForm” novalidate> <h2 align=”center”>Customer Entry Form</h2><br> <div class=”well”> <div class=”form-group”> <label for=”name”>Name:</label> <input type=”text” name=”name” class=”form-control” required> </div> <div […]

Read More
Framework
Laravel
Web Programming

How to use bootstrap in Laravel

Steps: 1. Create a Controller php artisan make:controller TestController 2. Copy the bootstrap folder in laravel public directory 3. Create a master view file for application layout and add the bootstrap link. <link rel=”stylesheet” href=”/css/bootstrap.css”> <script src=”/js/jquery-2.2.4.min.js”></script> <script src=”/js/bootstrap.min.js”></script> 4. Add the following code in the master view file <body> <div class=”container”> <div class=”col-md-12″> @yield(‘content’) […]

Read More