javascript - How can I dynamicly change the <title> tag? -


Please let me know how to change dynamically in angularjs.

I'm using Jason's data from NGresource and back-end, and I want to change it dynamically so I go to a new article for example.

You can change the HTML header and head elements by changing the title per head.

  1. Put angularjs-viewhead.js in your asset folder
  2. Announce your application as a dependency in general

    < Blockquote>

    var app = angular Modules ('myApp', ['ng', 'verse']);

  3. This type of setup can be obtained in an AngularJS application using the visual-title instructions. First, set your title element to bind to the special scope variable visibility, which will be set when the sloping view is turned on:

      & lt ; / Title ng -bind-templates = "{{viewTitle}} - Fubabas" & gt; Fubabas & lt; / Title & gt;  
    1. With this place, add a single view-title element to set the title of the footage in the template of each view:
      & lt; View-Title & gt; About & lt; / Visual-title & gt;  

Comments