I am currently using angular data table in my project & I want to create a data table dynamically in a second form by taking the input's from first form fields & on on clicking the submit button of first form.
Currently I am having two controllers. One controller for each form. I am able to broadcast my 1st form submit using $scope.$broadcast in 1st controller & is able to capture the broadcast event in 2nd controller. But somehow I am not able to create the data table in 2nd controller without initializing the data table in the beginning of 2nd controller. I mean I have to create the data table in 2nd controller when my page loads & do a dtInstance.rerender() when 1st form is submitted. But I don't want to create the data table when my page loads. In fact I want to create it only when user enters some data in 1st form & submit the click event.