Adding data row dynamically to the table with Angularjs

in utopian-io •  7 years ago  (edited)

What Will I Learn?

  • You will learn Directive ng-submit such as ng-submit="addRow()" is used with form element.
  • You will learn Directive ng-repeat such as ng-repeat="company in companies" is used with element for repeating the entries in companies JSON data as different row.
  • You will Directive ng-controller such as ng-controller="CompanyCtrl" defines the controller with element.
  • You will learn $scope.addRow function is added within CompanyCtrl. The function adds a new element in the companies JSON data using the syntax $scope.companies.push({ 'name':$scope.name, 'employees': $scope.employees, 'headoffice':$scope.headoffice });

Requirements

  • Atom Editor

Difficulty

Either choose between the following options:

  • Intermediate

Description

Video intent shows dynamically row insertion into table so firstly the employees array is defined and created using the bootstrap table ng-repeat then the necessary inputs are created in the form element to be data entry When the button is clicked, the addRow function is running and the elements in the inputs are pushed to the employees array. finally the inputs are cleared

Video Tutorial

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hey @steemkurdu, your contribution was rejected by the supervisor @omeratagun because he found out that it did not follow the Utopian rules.

Upvote this comment to help Utopian grow its power and help other Open Source contributions like this one. Do you want to chat? Join me on Discord.

@steemkurdu, I like your contribution to open source project, so I upvote to support you.

Thank you for the contribution. It has been approved.

  • There are many annoying noises in your video. You should pay more attention to the quality of your contribution.
    You can contact us on Discord.
    [utopian-moderator]

thank your advice .you allright ,i understand it

Same video, duplicated accounts.

Your contribution cannot be approved because it is a duplicate.

You can contact us on Discord.
[utopian-moderator]