Monday, 9 September 2013

Angularjs JavaScript variable directives

Angularjs JavaScript variable directives

I have a directive that is used for 4 ng-grids. The only difference
between them is data and a name posted above the grid (which is just
gotten from the html attrs). Now I want to add buttons for the grids that
go right above the grids. To do this I made many directives called, add,
delete, edit. Now my only problem is I only want add on my first grid and
delete on my second grid. How do I do this!?
NOTE: Since I don't remember other code sharing places besides jsFiddle, I
will be making a none-working project and the type of file will be
commented out since I don't know how to make two javascript files in
jsFiddle. Also, this is only snippets of what I have just to better
understand.
http://jsfiddle.net/kcTNL/
.row-fluid
.chartSpacing(the-grid=
"quote", the-grid-title="Quotes")
.row-fluid
.chartSpacing(the-grid="buyernote", the-grid-title="Buyer Notes")
And this is how the grids are called.

No comments:

Post a Comment