that's just using in your js file cant use in view, at your HTML view, u need to define VM like this in your root element: ng-controller="ExampleController as vm"
On Thursday, December 5, 2024 at 4:35:06 AM UTC+7 stro...@gmail.com wrote: > On Wednesday, December 4, 2024 at 12:59:17 PM UTC-8 trung....@gmail.com > wrote: > > Do you define controller as vm in your root html or options of component > config? > > > This predates my time in this code, but "vm" is defined like: > function AdminPipelineDeployController($q, $scope, Upload, AppConfig, > FlashService, PipelineService, ThemeService) { > var vm = this; > > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/angular/d294f206-fbf5-4696-94b2-06191fba2ad4n%40googlegroups.com.