angularjs - AngualrJS ElasticUI dependency injection -
i have question regarding dependency injection in angular.
i'm using elasticui: https://github.com/yousefed/elasticui
the index-name needs set inside tag.
<body ng-app="tutorial" eui-index="'index_name'">
is possible set index_name "outside" ?
angular.module('tutorial', ['elasticui']). ???
i don't know angular. i'm sorry if stupid question...
thanks help!
it's passing value directive. in controller:
.controller('mycontroller', function($scope) { $scope.indexname = "asdsd"; })
in html:
<body ng-app="tutorial" ng-controller="mycontroller" eui-index="indexname">
Comments
Post a Comment