How to create an Angular directive in the <head> section of a document?
问题 I am new to angular.js . I am trying to create a directive to add some title and meta tags in the <head> section of html documents, but I am having some trouble. My index.html document is as following: <!DOCTYPE html> <html ng-app="myApp"> <head> <meta charset="UTF-8"> <base href="/"> <seo-title></seo-title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.1/angular.min.js"></script> <script src="https://code.angularjs.org/1.4.1/angular-route.min.js"></script> <script src="