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]+" "+"...";
            }
        };

    });
                                    

< How to submit post data in angularjs Using php How to create form in codeigniter >



Ask a question



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


Back to Top