Shineyrock web design & consultancy

Shineyrock

Searched for: "test" / 634 results

Introduction to Forms in Angular 4: Template-Driven Forms

…test version of Angular has two powerful form-building strategies. They are: template-driven forms model-driven or reactive forms Both the technologies belong to the @angular/forms library and are based on the same form control classes. However, they differ remarkably in their philosophy, programming style, and technique. Choosing one over the other…


Exception Handling in Laravel

…Test Our CustomException Class So everything is in place now. Next, let's go ahead and create a controller file at app/Http/Controllers/ExceptionController.php so we can test our custom exception class. <?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; class ExceptionController extends Controller { public function index() { // something went wrong and you want…


Introduction to Forms in Angular 4: Reactive Forms

…test. You don't have to resort to end-to-end testing libraries to test your form. Validation logic will go inside the component class and not in the template. For a form with a large number of form elements, this approach has something called FormBuilder to make the creation of FormControl objects…


Creating a Task Manager App Using Ionic: Part 1

…testing the Ionic app in the browser until it's complete. Once complete, you'll test the application on an Android device.Type in the following command to run the app from the browser.ionic servePoint your browser to http://localhost:8100/ and you should have the Ionic project running.Here is how the project structure looks:Inside…


Site Authentication in Node.js: User Signup

…test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "izuchukwu1", "license": "ISC", "dependencies": { "bcryptjs": "^2.4.3", "body-parser": "^1.17.1", "connect-flash": "^0.1.1", "cookie-parser": "^1.4.3", "express": "^4.15.2", "express-handlebars": "^3.0.0", "express-messages": "^1.0.1", "express-session": "^1.15.2", "joi": "^13.0.1", "mongoose": "^4.11.12", "morgan": "^1.8.1", "passport": "^0.4.0", "passport-local": "^1.0.0" } }With that done, run the…


Handling Forms in Vue.js

…test }}</textarea> doesn't work!--> <textarea id="message" rows="5" class="form-control" v-model="message"></textarea> </div> </div>Update the model to look like this.<script> export default { data () { return { userData: { email: '', password: '', age: 40 }, message: 'This is a placeholder text' } } } </script>Checkboxes and Radio ButtonsCheckboxes give users the…


Eloquent Mutators and Accessors in Laravel

…test them in the upcoming section. Mutators in Action Let's create a controller at app/Http/Controllers/MutatorController.php so that we can test the mutator method, which we created in the earlier section. <?php // app/Http/Controllers/MutatorController.php namespace App\Http\Controllers; use App\Post; use App\Http\Controllers\Controller; class MutatorController extends Controller { public function index() { // create…


Custom Events in Laravel

…test things against. Let's quickly create a controller file at app/Http/Controllers/EventController.php to demonstrate how you could raise an event. <?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use App\Library\Services\Contracts\CustomServiceInterface; use App\Post; use Illuminate\Support\Facades\Gate; use App\Events\ClearCache; class EventController extends Controller { public function index() { // ... // you clear specific caches at this…


How to Download Files in Python

…test if the installation has been successful, you can do a very easy test in your python interpreter by simply typing:import requestsIf the installation has been successful, there will be no errors.HTTP requests include: GET POST PUT DELETE OPTIONS HEAD Making a GET requestMaking requests is very easy as illustrated…


How to Auto Update WordPress Salts

…test it. To access the plugin settings, go to Tools > Salt Shaker in the WordPress admin.Here, we can update the security keys/salts immediately with a single mouse click. As soon as the Change Now button is clicked, a spinning icon appears to the right to indicate the plugin is…


Refine Search

Save This Search?

Saved Searches

You have not saved any searches yet.