angular.js - How to pass an object type parameter to a custom directive directive in AngularJS?
迷茫2017-05-15 17:03:23
0
1
977
I want to write a custom instruction to generate a table on the page based on the array passed in from the outside. What should I do? Can custom directives in angularjs only receive string parameters? Can anyone help me, thank you!
I can give you a simple example: jsFiddle
As for whether "only strings can be passed", you need to read the documentation first:
Document address: scope