Currently, I am in the process of mastering Angular JS by working on an HTML Sample project. My goal is to create a user-friendly form where users can input basic information and select checkboxes to load different form pages using UI Routing. The page should dynamically generate navigation links based on the checkboxes selected. Once the form is filled out, it should be saved in a server directory and downloaded to the user's computer.
Although I was able to display all the data as a JSON array in the form, I'm encountering issues after trying to incorporate checklist links for navigation and saving features.
In my App.js file:
I've set up our Angular app and included ngAnimate and ui-router as dependencies
angular.module('formApp', ['ngAnimate', 'ui.router']) .config(function ($stateProvider, $urlRouterProvider) { $stateProvider .state('form', { url: '/form', templateUrl: 'form.html', controller: 'formController' }) .state('form.profile', { url: '/profile', templateUrl: 'form-profile.html' }) .state('form.interests', { url: '/interests', templateUrl: 'form-interests.html' }) .state('form.payment', { url: '/payment', templateUrl: 'form-payment.html' }); $urlRouterProvider.otherwise('/form/profile'); }) .controller('formController', function ($scope) { $scope.prefContactArray = []; // code continues... });
In Form.html:
In Submit Button Page:
In Index: