Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

at.js in angular js need help #568

Open
gvkweb opened this issue Sep 19, 2018 · 0 comments
Open

at.js in angular js need help #568

gvkweb opened this issue Sep 19, 2018 · 0 comments

Comments

@gvkweb
Copy link

gvkweb commented Sep 19, 2018

Hi all,
I am new this, here using ng-repeat to render data. here I want to add @ who dropdown

I am trying like

  <div ng-reapet ="user_data in data">
      {{data.content}}
				<input type="text" ng-model="user_content"  class="user_content"  id="user_content" >
				
			</div>

 <script>
      $(function(){
$.fn.atwho.debug = true

var jeremy = decodeURI("J%C3%A9r%C3%A9my") // Jérémy
var names = ["Jacob","Isabella","Ethan","Emma",,"Emily","Daniel","Madison"];

var names = $.map(names,function(value,i) {
  return {'id':i,'name':value,'email':value+"@email.com"};
});
var emojis = $.map(emojis, function(value, i) {return {key: value, name:value}});

var at_config = {
  at: "@",
  data: names,
  headerTpl: '<div class="atwho-header">Member List<small>↑&nbsp;↓&nbsp;</small></div>',
  insertTpl: '${name}',
  displayTpl: "<li>${name} <small>${email}</small></li>",
  limit: 200
}

$inputor = $(".user_content").atwho(at_config);
$inputor.caret('pos', 47);
$inputor.focus().atwho('run');   

});
</script>

@gvkweb gvkweb changed the title at.js in angularjs at.js in angular js need help Sep 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant