Apply for Zend Framework Certification Training

AngularJs




angularapp.filter('getFirstWord', function ($filter) {
        return function (input)
        {
            
            //content = content.substring(0, maxCharacters);
            var dd = input.split(' ');
            
            if(dd[0].length >=10)
            {
                return dd[0].substring(0, 10)+" "+"...";
            }
            if(dd[0].length <10)
            {
                return dd[0]+" "+"...";
            }
        };

    });
                                    

< What is angularJs How to fetch data from file in html using angularjs >



Ask a question



  • Question:
    {{questionlistdata.blog_question_description}}
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question


Back to Top