angular



  • There's a piece. HTML a code that is often repeated. There's no logic in it. It's just an element. Is there a way? AngularJS Take this piece apart .html The file and put it in code without using the directive?



  • A built-in directive may be used for displays from files or templates https://docs.angularjs.org/api/ng/directive/ngInclude

    ng-include="'путь к файлу или id шаблона'"
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2