-
-
Save mbuckley/6041903052f101a18715ffe37c921bc9 to your computer and use it in GitHub Desktop.
StateService href
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { StateService } from "angular-ui-router"; | |
class Blah { | |
/* @ngInject */ | |
constructor( | |
private AlertManager: any, | |
private $state: StateService; | |
private $sce: angular.ISCEService, | |
) {} | |
public $onInit() { | |
const calendars = this.$state.href("calendars", {}); | |
this.AlertManager.showSuccess(this.$sce.trustAsHtml(`<a href="${calendars}">CALENDARS</a>`), { timeout: 0 }); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment