// Define the AngularJS module var app = angular.module("exampleApp", []); // Define the controller for the module app.controller("ExampleController", function ($scope) { // Initialize the scope variables $scope.title = "AngularJS 1.8 Example"; $scope.description = "This is a simple AngularJS application demonstrating basic features."; $scope.items = ["Item 1", "Item 2", "Item 3"]; // Function to add a new item to the list $scope.addItem = function () { if ($scope.newItem) { $scope.items.push($scope.newItem); $scope.newItem = ""; // Clear the input field after adding } }; });