mark search string dynamically using angular.js

前端 未结 4 2131
北荒
北荒 2021-02-08 07:22

How can I mark my search pattern dynamically in my html?
Example:

\"SearchExample\"

I\'m using angular

4条回答
  •  甜味超标
    2021-02-08 08:14

    Try Angular UI

    They have a highlight directive. You can use it as a reference to make your own (or just use it directly).

提交回复
热议问题