Skip to content
Advertisement

Angular newbie, non responsive dynamic table

I’m really really new to Angular, I’m trying to understand it in 2 days time and I’m extremely lost in what I am doing.

I am trying to build a dynamic table but it’s not being responsive at all.

Technically, none of my Angular codes are working.

https://jsfiddle.net/0zzyxxf0/

JS:

JavaScript

HTML:

JavaScript

The data is not populated by the arrays I have provided, and it’s also not responsive.

Advertisement

Answer

I really don’t able to to understand what you are trying to do but the found some basic mistakes in your code:

  1. Names are different like in case of MyDives in javascript while myDives in HTML.
  2. No connection in ng-app and ng-controllers
  3. Multiple use of ng-app. It is ok but to use them there is some different method.

As what I able to understand about your problem, you are trying to do something like that:

JS

JavaScript

HTML

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement